RE: [PHP-WIN] Rounding

From: Date: Tue, 09 Apr 2002 13:36:28 +0000
Subject: RE: [PHP-WIN] Rounding
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12982@lists.php.net to get a copy of this message
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 PHP's), the default precision is to round to the nearest integer. Thus, by both of these modest leaps of assumption, normal rounding to me is rounding to the nearest integer. -Mike At 11:50 AM 4/9/2002 +0200, Svensson, B.A.T. (HKG) wrote:
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??????


« previous php.windows (#12982) next »