note
Zaxo
<p>Floating point arithmetic is inherently imprecise. Since you record as pennies, Math::BigInt might be a better choice than Math::BigFloat. Currency exchange rates are, in themselves, a bit fuzzy, so I suggest getting your spec clarified as to how rounding is done, what quotation is used, when the quote is changed, etc. There is an accountant somewhere in this job. There's where to get the real needs.</p>
<p><b>Update: </b>If Math::BigInt is overkill, what do you need with Math::BigFloat? To round an ordinary perl number, a float, to an integer <code>($n+.5)|0</code> or else <code>sprintf "%.0f",$n</code>. Again, talk to the accountant.</p>
<p>After Compline,<br/>Zaxo</p>
115370
115370