RE: [PHP-WIN] Rounding
| From: | HKG) | Date: | Tue, 09 Apr 2002 09:50:16 +0000 |
| Subject: | RE: [PHP-WIN] Rounding | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12979@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Mike Flynn
> Sent: Tuesday, April 09, 2002 1:30 AM
> To: r.fleming@clara.co.uk; hinchy2000@lineone.net;
> php-windows@lists.php.net
> Subject: RE: [PHP-WIN] Rounding
>
>
> 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.
What's "normal" rounding??????
One can round with a roof function, or one can round with a sealing function,
or one can round always towards odd numbers, or always even number, or one can
round by adding or subtracting a factor 0,5 to the multiple before rounding,
or one can use a combination of the above, so I am curious about to know what's
normal, and why it is normal then?
//Anders - former financial programmer....