#11639 [Com]: Errores de operación con enteros negativos

From: Date: Tue, 20 Jul 2004 15:07:35 +0000
Subject: #11639 [Com]: Errores de operación con enteros negativos
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62990@lists.php.net to get a copy of this message
ID: 11639 Comment by: booty-black191 at hotmail dot com Reported By: rinconastur at freesurf dot fr Status: Closed Bug Type: *Math Functions Operating System: Windows98 PHP Version: 4.0.5 New Comment: <a href=http://uncutheelsporn-too.da.ru>booty black</a> Previous Comments: ------------------------------------------------------------------------ [2001-06-24 09:34:52] sniper@php.net RTFM: "These math functions will only handle values within the range of the long and double types on your computer. If you need to handle bigger numbers, take a look at the arbitrary precision math functions." http://www.php.net/bc ------------------------------------------------------------------------ [2001-06-24 09:16:04] rinconastur at freesurf dot fr <? $a=-13; $b=-87; $c=-2147483647; $d=-1073721824; $e=-1073721824; $s=-2147483600; $f=$a+$b; $r=$a+$c; $g=$b+$c; $m=$d+$e; $w=$s+$b; echo "Resultado correcto de a+b= -100<br>"; echo "Resultado de PHP...: ",$f,"<br><br>"; echo "Resultado correcto de a+c= -2147483660<br>"; echo "Resultado de PHP...: ",$r,"<br><br>"; echo "Resultado correcto de d+e= -2147483648<br>"; echo "Resultado de PHP...: ",$m,"<br><br>"; echo "Resultado correcto de s+b= -2147483687<br>"; echo "Resultado de PHP...: ",$w,"<br><br>"; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=11639&edit=1

« previous php.bugs (#62990) next »