c# - Why doesn't the decimal class use the remaining 26 bits? -
the decimal class uses 96 bits integral part, 1 bit sign, , 5 bits scaling factor. 26 bits unused, , max value 7.9e28 because maximum exponent 28.
using other 26 bits, precision higher. what's reason implementation choice?
you might find article useful:
http://csharpindepth.com/articles/general/decimal.aspx
128 4 x 32. cpu's have 32 (or 64) bit registers , alus, divisible 32 much easier manipulate , store etc.
c# decimal
No comments:
Post a Comment