in reply to How do I print/round a number to a given number of decimal places?

Try running this:
printf "%23.20f\n",$_+.425 for 7, 8;
Maybe reading What Every Computer Scientist Should Know About Floating-Point Arithmetic can enlighten you about the reasons.
  • Comment on Re^2: Answer: How do I print/round a number to a given number of decimal places?
  • Download Code