in reply to Reduce from 2 to 0.1.
Solution: round it off with sprintf.
Hope this helps,
Jeroen
"We are not alone"(FZ)
Update: davorg is right. Stick with integers,
or put the sprintf in the for:
$i = sprintf('%.1f', $i - 0.1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reduce from 2 to 0.1.
by davorg (Chancellor) on Apr 10, 2001 at 19:22 UTC |