in reply to sprintf() returning incorrect value
my $n = 114.9999999999999; print "$n\t", sprintf "%07d\n", $n; __END__ Output: 115 0000114
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sprintf() returning incorrect value
by ppeel (Novice) on Jul 15, 2015 at 15:29 UTC |