RE: [PHP-WIN] Rounding

2002-04-09 Thread Ross Fleming
d I'm sure we'll all agree on that! ;D Ross -Original Message- From: Mike Flynn [mailto:[EMAIL PROTECTED]] Sent: 09 April 2002 18:23 To: Svensson, B.A.T. (HKG) Cc: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Rounding At 05:49 PM 4/9/02 +0200, Svensson, B.A.T. (HKG) wrote: >Th

RE: [PHP-WIN] Rounding

2002-04-09 Thread Mike Flynn
At 05:49 PM 4/9/02 +0200, Svensson, B.A.T. (HKG) wrote: >The number '2' I now have, was it - to be extreme - it '1,1' (a sealing >function) or was it '2,9' (a floor function) before? You can never really >tell... If it was by the rule we've settled on below, then if you have 2, then the number y

RE: [PHP-WIN] Rounding

2002-04-09 Thread Svensson, B.A.T. (HKG)
> Well, I suppose rounding by the dictionary's definition can mean any kind > of approximation to a number of less significant digits, so I see your > point. To be a bit philosophical about it, yes. Rounding is always a matter of losing information (e.g. precision), and you can never tell in wh

RE: [PHP-WIN] Rounding

2002-04-09 Thread Mike Flynn
Well, I suppose rounding by the dictionary's definition can mean any kind of approximation to a number of less significant digits, so I see your point. But by the popular vernacular and by the default precision for any programming language's "round" function that I've encountered (including P

RE: [PHP-WIN] Rounding

2002-04-09 Thread Svensson, B.A.T. (HKG)
> -Original Message- > From: Mike Flynn > Sent: Tuesday, April 09, 2002 1:30 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Rounding > > > At 09:43 PM 4/8/02 +0100, Ross Fleming wrote: > >Multiply by 100, take

RE: [PHP-WIN] Rounding

2002-04-09 Thread Ross Fleming
Absolute, round, same thing.. ;) Cheers mate Ross -Original Message- From: Mike Flynn [mailto:[EMAIL PROTECTED]] Sent: 09 April 2002 00:30 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Rounding At 09:43 PM 4/8/02 +0100, Ross Fleming wrote

RE: [PHP-WIN] Rounding

2002-04-08 Thread Mike Flynn
At 09:43 PM 4/8/02 +0100, Ross Fleming wrote: >Multiply by 100, take the absolute value and divide by 100 again That will round down to 2 decimal places. To round to the nearest 2 decimal places, to what Ross said but instead of getting the absolute value, just round it normally. >Hi all, > >

RE: [PHP-WIN] Rounding

2002-04-08 Thread Ross Fleming
Multiply by 100, take the absolute value and divide by 100 again -Original Message- From: Wayne Hinch [mailto:[EMAIL PROTECTED]] Sent: 08 April 2002 20:36 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Rounding Hi all, Is it possible to round to 2 decimal places in PHP without having to pus