[fpc-pascal] floating point an FPC
Graeme Geldenhuys
graemeg.lists at gmail.com
Tue Mar 2 12:02:56 CET 2010
ik wrote:
>
> So if I need for example to compare currency or something that is
> floating point, how do I do that ?
I think the Currency type is ok (special case with special handling), but
other floating types are not.
Alternatively, work with Integer types only, and then when you need to
display currency or float with decimal values, do a (x div 100) etc.
depending on the size of decimal you want.
All our currency and float values are actually stored as integer inside
databases too.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list