Bug #11639 Updated: Errores de operación con enteros negativos

From: Date: Sun, 24 Jun 2001 13:34:52 +0000
Subject: Bug #11639 Updated: Errores de operación con enteros negativos
Groups: php.dev 
Request: Send a blank email to php-dev+get-57825@lists.php.net to get a copy of this message
ID: 11639 Updated by: sniper Reported By: rinconastur@freesurf.fr Old-Status: Open Status: Closed Bug Type: *Math Functions Operating system: PHP Version: 4.0.5 Assigned To: Comments: 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 Previous Comments: --------------------------------------------------------------------------- [2001-06-24 09:16:04] rinconastur@freesurf.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>"; ?> --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11639&edit=2

« previous php.dev (#57825) next »