Re: [PHP] Different Values for intval(float)

2006-02-20 Thread Chris
Interestingly enough, I tried it on several of my machines, which are different platforms and different (sub)versions of PHP and I got different results: RH7.3 with PHP 4.1.2: 2113879380 IRIX 6.5.11 with PHP 4.2.3: 2147483647 FC1 with PHP 4.3.6: 2113879380 R

Re: [PHP] Different Values for intval(float)

2006-02-18 Thread Ashley M. Kirchner
Bruce wrote: Consider the following code: $BB = -2181087916; $AA = (int)$BB; $AA = intval($BB); On some systems, $AA will be int(-2147483648), which is actually consistent with the documentation. On most systems, however, $AA will be int(2113879380), which is the same v

[PHP] Different Values for intval(float)

2006-02-18 Thread Bruce
Consider the following code: $BB = -2181087916; $AA = (int)$BB; $AA = intval($BB); On some systems, $AA will be int(-2147483648), which is actually consistent with the documentation. On most systems, however, $AA will be int(2113879380), which is the same value truncated