Sreti Posted March 25, 2006 Share Posted March 25, 2006 It seems I've run into quite a problem with the PHP data types. I am doing bitwise shifting and am exceeding the maximum integer size.for example $test = (1 << 32); //$test = 64? Should be 4294967296. It clearly exceeded maxintEven if I had some way to make it unsigned, I still need to push up to around 40 places so I need something that works like a ULONG. Any help would be massively appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/5803-very-large-numbers/ Share on other sites More sharing options...
toplay Posted March 25, 2006 Share Posted March 25, 2006 Maybe these could help:[a href=\"http://us2.php.net/manual/en/ref.bc.php\" target=\"_blank\"]http://us2.php.net/manual/en/ref.bc.php[/a][a href=\"http://pear.php.net/reference/Math_Integer-latest/Math_Integer/_Math_Integer-0.8_Integer_php.html\" target=\"_blank\"]http://pear.php.net/reference/Math_Integer...nteger_php.html[/a] Quote Link to comment https://forums.phpfreaks.com/topic/5803-very-large-numbers/#findComment-20698 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.