Posted by Erwin Moller on 11/29/07 12:18
bummerland@gmail.com wrote:
> Hi,
>
> I have a problem with the function fmod.
>
> Why is fmod(5.7, 0.1) = 0.1 ?? Why is it not 0?
>
> tia bummerland
Hi,
Read the usercontributed notes on www.php.net for that function.
http://nl3.php.net/manual/en/function.fmod.php
It seems to be broken.
Also you'll find a few replacing algoritms.
Regards,
Erwin Moller
[Back to original message]
|