in reply to Re: strange rounding behaviour
in thread strange rounding behaviour
I.e., if you need 2 decimal places, use ints * 100, and print like this:
print ($a/100),".","($a%100),"\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: strange rounding behaviour
by srawls (Friar) on May 19, 2001 at 00:03 UTC | |
by riffraff (Pilgrim) on May 19, 2001 at 00:26 UTC |