Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^4: what did I just see..?

by LanX (Sage)
on Mar 22, 2021 at 04:01 UTC ( #11130074=note: print w/replies, xml ) Need Help??

in reply to Re^3: what did I just see..?
in thread what did I just see..?

Financial calculations can be quite hairy AFAIK,

And for very good reasons.

They have special rounding rules and fixed precision like a tenth or hundreth of a cent.


1 Euro = 1.95583 Deutsch Mark

But it's all integer in nature.

And bank rules may not be fiscal rules.

The only way I can think of to handle such systems transparently in Perl is using objects with overloaded operators. (With internal integers)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11130074]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-06-27 06:10 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (86 votes). Check out past polls.