Re[4]: Точность С#
От: Елисей  
Дата: 10.04.06 18:26
Оценка:
Здравствуйте, GarryIV, Вы писали:

GIV>Здравствуйте, Ice Dragon, Вы писали:


O>>> Ну или использовать числа с фиксированной точкой — такие, как decimal, например, — если диапазона хватает.

ID>>Он не с фиксированной, а с плавающей, просто мантисса имеет основанием 10, а не 2.

GIV>Учи матчасть


GIV>

GIV>A decimal number is a signed, fixed-point value consisting of an integral part and an optional fractional part. The integral and fractional parts consist of a series of digits that range from zero to nine (0 to 9), separated by a decimal point symbol.


GIV>подробности тут http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDecimalClassTopic.asp


Странно. По ссылке написано: The binary representation of an instance of Decimal consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the 96-bit integer and specify what portion of it is a decimal fraction.
Т.е. там есть и мантисса (...96-bit integer number...) и экспонента (...scaling factor used to divide the 96-bit integer and specify what portion of it is a decimal fraction).
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.