in reply to Proper monetary rounding
Hmm. Why didn't that work? {grin}for (qw(1.0049 1.0050 1.0051 1.0149 1.0150 1.0151 1.0249 1.0250 1.0251 +)) { printf "%s => %0.2f\n", $_, $_; } ... 1.0049 => 1.00 1.0050 => 1.00 1.0051 => 1.01 1.0149 => 1.01 1.0150 => 1.01 1.0151 => 1.02 1.0249 => 1.02 1.0250 => 1.02 1.0251 => 1.03
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Proper monetary rounding
by blogical (Pilgrim) on Mar 05, 2007 at 03:43 UTC | |
by jonadab (Parson) on Mar 05, 2007 at 12:49 UTC | |
by monarch (Priest) on Mar 05, 2007 at 16:00 UTC | |
by jonadab (Parson) on Mar 06, 2007 at 16:29 UTC | |
by eric256 (Parson) on Mar 05, 2007 at 18:35 UTC |