Hi:

Why is the "floor" function returning 27564 instead of 27565 in this script? PHP version is 4.2.2.

Thanks!
Ruben.



#!/usr/bin/php -q

<?php

$b = 275.65 * 100;
echo "\n\nb= ".$b;
echo "\nfloor(b)= ".floor($b);    // Incorrect. why 27564?

$b = 27565;
echo "\n\nb= ".$b;
echo "\nfloor(b)= ".floor($b)."\n\n";    // Correct

?>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to