in reply to Re: Rounding over numbers
in thread Rounding over numbers
ok 1 - round 1.24 to 1.20 not ok 2 - round 13.25 to 13.30 # Failed test 'round 13.25 to 13.30' # at r2.pl line 12. # got: '13.20' # expected: '13.30' ok 3 - round 2.90 to 2.90 ok 4 - round 2.99 to 3.00 ok 5 - round 2.92 to 2.90 ok 6 - round 14 to 14.00 ok 7 - round 1.2345678 to 1.234570 1..7 # Looks like you failed 1 test of 7.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Rounding over numbers
by Laurent_R (Canon) on Feb 15, 2016 at 07:25 UTC | |
|
Re^3: Rounding over numbers
by Athanasius (Archbishop) on Feb 15, 2016 at 07:03 UTC | |
by kevbot (Vicar) on Feb 15, 2016 at 07:23 UTC |