in reply to precision problem ?

Change:
$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
    .... yes it is ...

    thanks ^_^

    and as i have read (a long time ago) the long explanation, i think it is time (00:35) for me to have a sleeping break.