RE: [PHP] strange question
| From: | jeremy brand | Date: | Tue, 02 Jan 2001 22:43:41 +0000 |
| Subject: | RE: [PHP] strange question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32393@lists.php.net to get a copy of this message | ||
This code:
<?php
$val = -879376120 + 4294967296;
print $val . "\n";
?>
prints out 3415591176 with both PHP4 and PHP3.
Wow, someone at zend, new to PHP? (does this just seem strange to
anyone else?) I'm not picking on you Eetay.. Just curious, that's
all.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"<body>" -- Quoted from Yahoo! homepage, http://www.yahoo.com
On Mon, 1 Jan 2001, Eetay Natan wrote:
> Date: Mon, 1 Jan 2001 13:09:36 +0200
> From: Eetay Natan <eetay@zend.com>
> To: php-general@lists.php.net
> Subject: RE: [PHP] strange question
>
> Hello,
> I'm new to PHP, but nonetheless I tried it (using PHP 4.03pl1) and got the
> correct answer (3415591176). Maybe you're using older version of PHP?
>
> Eetay
>
>
> -----Original Message-----
> From: chchen [mailto:s8553105@mail.nchu.edu.tw]
> Sent: Thursday, December 21, 2000 6:43 AM
> To: php-general@lists.php.net
> Subject: [PHP] strange question
>
> why i
> echo (-879376120 + 4294967296)
> in php,
> it display 1268107527
>
> actually it should be 3415591176
>
> why?....so strange
>
> Regards
> chChen
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>