Richard Lynch schrieb:
On Wed, May 3, 2006 12:25 pm, Duffy, Scott E wrote:
Are printf and number_format supposed to round?
echo ($hcount-$lcount)/$hilow." ";
echo number_format(($hcount-$lcount)/$hilow,2,'.','');
0.208333 0.21
0.145833 0.15
0.16
On Wed, May 3, 2006 12:25 pm, Duffy, Scott E wrote:
> Are printf and number_format supposed to round?
>
> echo ($hcount-$lcount)/$hilow." ";
> echo number_format(($hcount-$lcount)/$hilow,2,'.','');
>
>
> 0.208333 0.21
> 0.145833 0.15
> 0.17 0.
Are printf and number_format supposed to round?
echo ($hcount-$lcount)/$hilow." ";
echo number_format(($hcount-$lcount)/$hilow,2,'.','');
0.208333 0.21
0.145833 0.15
0.17 0.17
0.083 0.08
Printf ("%.2f",($hcount-$lcount)/$
3 matches
Mail list logo