|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Proper monetary roundingby jonadab (Parson) |
| on Mar 05, 2007 at 12:49 UTC ( #603203=note: 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 Section
Snippets Section
|
|
||||||||||||||||||||||||||