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
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
> 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
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
> -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
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
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,
>
>
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