Re: round()

From: Date: Wed, 10 Oct 2007 18:30:17 +0000
Subject: Re: round()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-263058@lists.php.net to get a copy of this message
On 10/10/07, tedd <tedd@sperling.com> wrote: > > Hi gang: > > While we're entertaining algorithms, has anyone else noticed that > php's round() isn't the most accurate algorithm to round? > > there is a function that uses the bc math library on the bc math page<http://www.php.net/manual/en/ref.bc.php> ; first comment in the list; maybe it works better, but i havent tried it. -nathan

« previous php.general (#263058) next »