Posted by Philip Ronan on 12/05/05 21:41
"Andy Hassall" wrote:
> You appear to be working with monetary values from the names in your original
> post. You shouldn't use floating point numbers for money; use integers,
> multiplied up to the minor currency. So £1.50 = 150.
There might be a good reason for using floats. For example, all your sales
tax calculations will be rounded down if you use integers.
--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Navigation:
[Reply to this message]
|