XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I think he's saying that sprintf actually does that, in just that way:
"Normal" (gradeschool) rounding would produce 1.51 and 1.52 there, but sprintf says 1.50 and 1.52, which seems an aweful lot like round-to-even to me. How does it differ from what you wanted? As far as accountants being picky about this... have you ever seen the movie Superman 3? --
We're working on a six-year set of freely redistributable Vacation Bible School materials.
In reply to Re: Proper monetary rounding
by jonadab
|
|