hi
I think a decimal number is stored as a fixed point number (not a floating point number). that is, a decimal always has fixed number of digits after ".".
am I correct?
2 replies to this topic
#1
Posted 10 February 2012 - 06:53 PM
I wrote this ebook! Will you translate it into English for free!?:confused: PM me!
|
|
|
#2
Posted 10 February 2012 - 07:42 PM
It's more than that. Decimal values store exact values whereas floating points are stored as binary fractions, and thus some decimal numbers do not have exact representations and must be approximated. Because of this, decimals have a smaller range than doubles, but higher precision.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
#3
Posted 15 February 2012 - 08:08 AM
irancplusplus said:
hi
I think a decimal number is stored as a fixed point number (not a floating point number). that is, a decimal always has fixed number of digits after ".".
am I correct?
I think a decimal number is stored as a fixed point number (not a floating point number). that is, a decimal always has fixed number of digits after ".".
am I correct?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









