View Single Post
Old Oct 19th, 2005, 7:35 AM   #13
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Basically I believe a currency is your regular integer, (pure binary number) but the value is understood to be shifted down x places (divided by 10^x at the end). The reason its more precise than a double is that a double is stored as a binary float in memory, akin to standard form (value + placecount or mantissa + exponent).
Rory is offline   Reply With Quote