Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Result: 2.81$a = 2.815; $a = sprintf("%.2f", $a); printf "a =".$a."---\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Rounding problem with sprintf??
by japhy (Canon) on Jul 03, 2001 at 00:46 UTC | |
by Anonymous Monk on Sep 04, 2014 at 07:26 UTC | |
by AnomalousMonk (Archbishop) on Sep 04, 2014 at 15:56 UTC | |
|
Re: Rounding problem with sprintf??
by Anonymous Monk on Jul 03, 2001 at 00:22 UTC | |
|
Re: Rounding problem with sprintf??
by Aighearach (Initiate) on Jul 03, 2001 at 00:23 UTC | |
|
Re: Rounding problem with sprintf??
by tadman (Prior) on Jul 03, 2001 at 00:25 UTC | |
by ChemBoy (Priest) on Jul 03, 2001 at 00:50 UTC |