RE: [PHP] RE: round()

From: Date: Fri, 12 Oct 2007 14:30:20 +0000
Subject: RE: [PHP] RE: round()
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-263151@lists.php.net to get a copy of this message
At 7:30 PM -0700 10/11/07, Instruct ICC wrote:
Now I see why BCMath was mentioned.
Yes, but precision is not the issue. It doesn't make any difference if you are rounding. (a) 1.489123451985765 or (b) 148912345198576.5 You still have to make a decision as to if the above (a) rounds to: (a) 1.48912345198577 or (a) 1.48912345198576 or the above (b) rounds to: (b)148912345198577 or (b) 148912345198576 It's a question of rounding, not precision. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#263151) next »