ID: 11639 Updated by: sniper Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] <? $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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]