note 74929 deleted from function.pow by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 15:31:17 +0000 |
| Subject: | note 74929 deleted from function.pow by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189868@lists.php.net to get a copy of this message | ||
Note Submitter: Docey
----
no integer breaking here, pow just silently switches to using floats instead of integers.
pow(2, 31) = integer value
pow(2, 32) = float value.
the manual says the limit for floats is machine dependent so i did a little loop to see how far it
will go before becomming infinit. the result is 1023.
pow(2, 1023) = float
pow(2, 1024) = ifinit.
tested on php 4.4.1 under windows2000 on an AMD AthlonXP 2800+.