RE: round()

From: Date: Fri, 12 Oct 2007 14:19:12 +0000
Subject: RE: round()
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-263150@lists.php.net to get a copy of this message
At 11:26 AM -0700 10/11/07, =?UTF-8?Q?J=C3=BCrgen_Wind?= wrote:
I get correct results: 5.2.4 PHP_VERSION round(5.555,2):5.56 toFixed(5.555,2):5.56
You get correct results because the demand you made of the function was simple. If you expand your demand to thousands of cases, then the bias will emerge. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#263150) next »