so 1.25 is the correct result.perl -e 'printf "%.18f", 1.255' __OUTPUT__ 1.254999999999999893
In reply to Re: Rounding a number using (s)printf
by borisz
in thread Rounding a number using (s)printf
by the_slycer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |