in reply to
Rounding a number using (s)printf
Does leaving the
0
preceding the decimal point out of the formatting directive change anything?
printf("%.2f\n", 1.255);
[download]
Comment on
Re: Rounding a number using (s)printf
Select
or
Download
Code
In Section
Seekers of Perl Wisdom