note 117841 rejected from internals2.opcodes.cast by cmb
| From: | cmb@php.net | Date: | Tue, 18 Aug 2015 16:03:26 +0000 |
| Subject: | note 117841 rejected from internals2.opcodes.cast by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203380@lists.php.net to get a copy of this message | ||
Note Submitter: fodger1975 at gmail dot com
----
Hi,
Take care about casting.
Casting from float doesn't seem to work properly:
print (int) (( 0.1 + 0.7 ) * 10);
Will return ... 7 ! It should be 8.
Using printf give same result.