How can I get the modulus of an float by an integer?
$time=3.345345;
$time2=2.34234;
$time3=$time%$time2;
echo $time3;
this outputs 1.
$time=3.345345;
$time2=2
$time3=$time%$time2;
echo $time3;
this also outputs 1.
Of course... when dividing two floats, there is no remainder... but, there
is an integer invovled... is automatically converted to float before
dividing, so that's why no remainder?
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]