Re: round()
| From: | David Giragosian | Date: | Wed, 10 Oct 2007 18:20:04 +0000 |
| Subject: | Re: round() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263055@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?
>
> Cheers,
>
> tedd
>
> --
> -------
> http://sperling.com
> http://ancientstones.com
> http://earthstones.com
Yes. sprintf seems to give more expectable results.
David