note 117775 rejected from function.pow by cmb
| From: | cmb@php.net | Date: | Fri, 07 Aug 2015 13:29:51 +0000 |
| Subject: | note 117775 rejected from function.pow by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203285@lists.php.net to get a copy of this message | ||
Note Submitter: robert dot urbanski2 at gmail dot com
----
Weird behavior on 32 bit environment
pow(2, 31) = 2147483648
(int)pow(2, 31) = -214748648
is_int( pow(2, 31) ) = [FALSE]
is_int( (int)pow(2, 31) ) = [TRUE]