View Single Post
Old Jul 17th, 2006, 10:37 AM   #22
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
That depends on why, precisely, you care about representing 83.39 exactly. For example, if the value 83.39 is a value of currency, and is "83 dollars and 39 cents", then one solution would be to use two integers (one to hold the number of dollars, one to hold the number of cents). But if the value represents something else, you will probably need to do something different. Another option is to store the value as floating point, but control how it is output.
grumpy is offline   Reply With Quote