note 41212 deleted from function.intval by vrana

From: Date: Tue, 15 Mar 2005 13:54:11 +0000
Subject: note 41212 deleted from function.intval by vrana
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-86472@lists.php.net to get a copy of this message
Note Submitter: paul at SPAMFREEMAN dot santasoft dot com ---- on the note above (or rather below) dated 5 Mar 2004: <?php $num = pi(); echo (int) $num * 10; // prints 30, not 31 ?> if you do it this way you do get 31: <?php $num = pi(); echo (int) ($num * 10); // prints 31, not 30 ?> :) So remember that parenthesis'eseseses (however the plural is spelled) are important if they are important to your result.

« previous php.notes (#86472) next »