Re: [PHP] RE: round()

2007-10-12 Thread Nathan Nobbe
On 10/12/07, tedd <[EMAIL PROTECTED]> wrote: > > At 7:30 PM -0700 10/11/07, Instruct ICC wrote: > > > > > >Now I see why BCMath was mentioned. > > Yes, but precision is not the issue. > > It doesn't make any difference if you are rounding. > > (a) 1.489123451985765 > > or > > (b) 148912345198576.5

RE: [PHP] RE: round()

2007-10-12 Thread tedd
At 7:30 PM -0700 10/11/07, Instruct ICC wrote: Now I see why BCMath was mentioned. Yes, but precision is not the issue. It doesn't make any difference if you are rounding. (a) 1.489123451985765 or (b) 148912345198576.5 You still have to make a decision as to if the above (a) rounds to:

RE: [PHP] RE: round()

2007-10-11 Thread Instruct ICC
> well, > seems to be OS dependent: > > PHP_OS:Linux (Suse 9.x 32bit) | PHP_VERSION:5.0.3 > $t=1.255; > round($t,2):1.26 > $t += .0001; > round($t,2):1.26 > > > PHP_OS:WINNT (2000) | PHP_VERSION:5.2.4 > $t=1.255; > round($t,2):1.25 > > $t += .0001; > round($t,2):1.26 > > -- > Vie

Re: [PHP] Re: Round with ONE-decimal... always...

2005-09-12 Thread Gustav Wiberg
- Original Message - From: "Mark Rees" <[EMAIL PROTECTED]> To: Sent: Monday, September 12, 2005 11:12 AM Subject: [PHP] Re: Round with ONE-decimal... always... > I want to adjust the round() -function a little... If I put round(6,0) there will be an output of 6 If I put round(6,32