in reply to Rounding a number using (s)printf

Floating point numbers are not exactly represented.
perl -e 'printf "%.18f", 1.255' __OUTPUT__ 1.254999999999999893
so 1.25 is the correct result.
Boris