Re: round()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/10/07, tedd <tedd@xxxxxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux