in reply to precision problem ?
$array[$i][1] = $array[$i-1][1] + 0.2;
to something like:
$array[$i][1] = sprintf '%.2f', $array[$i-1][1] + 0.2;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: precision problem ?
by Anonymous Monk on Aug 07, 2013 at 19:41 UTC |