my $n = 114.9999999999999; print "$n\t", sprintf "%07d\n", $n; __END__ Output: 115 0000114
In reply to Re: sprintf() returning incorrect value
by choroba
in thread sprintf() returning incorrect value
by ppeel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |