Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)


"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Saturday September 04, 2004
06:48 PM

Wise man say

[ #20733 ]
Dear Log,

Do all money math in cents. It avoids surprises from roundoff errors.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • ...until you have to calculate tax, interest or anything else involving percentages. Then you're back at 1**2. :( is an interesting way out, if you can afford the speed hit, except that strings used as numbers are not bignums. Sounds unlikely until you realize that everything returned from DBI is a string (at least with DBD::mysql).