It is most definitely not if what you want is the square root, or the
hyperbolic cosine or any other of a zillion things.
----- Original Message -----
From: "Mark Summers" <mark@xxxxxxxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Wednesday, August 01, 2007 6:52 PM
Subject: Loss of precision in intval()
This sort of thing really isn't helpful...
<?php
$a = 75.82 * 100;
echo intval($a);
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.0/929 - Release Date: 31/07/2007
17:26
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php