Bug #1582 Updated: Truncation error

From: Date: Tue, 22 Jun 1999 12:24:16 +0000
Subject: Bug #1582 Updated: Truncation error
Groups: php.dev 
Request: Send a blank email to php-dev+get-7407@lists.php.net to get a copy of this message
ID: 1582 Updated by: sas Reported By: louis@sitebysite.nl Status: Closed Bug Type: Misbehaving function Assigned To: Comments: This is correct in the sense that it must be expected. Casting a floating point number to an int cuts off all decimal places (digits). So, if $x is 9.949999 * 100 = 994.999999, casting to an integer will result in 994. Full Bug description available at: http://bugs.php.net/?id=1582

« previous php.dev (#7407) next »