in reply to Re: strange rounding
in thread strange rounding
Finally I want to let you know that even
produces 123.99 and not 124.00. Only Math::Round had the correct answers.$u = sprintf "%.2f", (int(0.5+($u*$p*100))/100);
Carl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: strange rounding
by BrowserUk (Patriarch) on Nov 29, 2004 at 16:07 UTC | |
by Anonymous Monk on Nov 30, 2004 at 09:28 UTC |