Using (s)printf() What Every Computer Scientist Should Know About Floating-Point Arithmetic$ perl -le" printf qq!%.2f\n!, shift while @ARGV " 0.335 0.34 1.335 1. +33 0.34 0.34 1.33 1.33
In reply to Re: sprintf rounding convention
by Anonymous Monk
in thread sprintf rounding convention
by jagaranga
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |