Graeme Geldenhuys schrieb:

We have no decided to trunc our currency values to 2 decimals and use
our own rounding routine (not bankers rounding etc...).

Calculations with amounts of money frequently are subject to detailed official prescreptions, e.g. for tax calculations. There exists no way to unify all those national or otherwise specified procedures in an standard data type. So it's common practice to implement the prescriptions in according integer calculations with the prescribed scaling and rounding. <sigh>

DoDi


_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to