Re: [PHP] printf and number_format rounding

2006-05-04 Thread Barry
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

Re: [PHP] printf and number_format rounding

2006-05-04 Thread Richard Lynch
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.

[PHP] printf and number_format rounding

2006-05-03 Thread Duffy, Scott E
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)/$