Tuck Posted October 11, 2009 Share Posted October 11, 2009 $steam_W = ($steam_Z*2) + 76561197960265728 + $steam_Y); result in "7.65611979729E+16" witch is not a valid number i need the valid integer :/ Quote Link to comment https://forums.phpfreaks.com/topic/177253-math-bugging/ Share on other sites More sharing options...
mikesta707 Posted October 11, 2009 Share Posted October 11, 2009 try $steam_W = ($steam_Z*2) + 76561197960265728 + $steam_Y); echo (float)$steam_W; Quote Link to comment https://forums.phpfreaks.com/topic/177253-math-bugging/#findComment-934614 Share on other sites More sharing options...
Tuck Posted October 11, 2009 Author Share Posted October 11, 2009 try $steam_W = ($steam_Z*2) + 76561197960265728 + $steam_Y); echo (float)$steam_W; same result.. Quote Link to comment https://forums.phpfreaks.com/topic/177253-math-bugging/#findComment-934616 Share on other sites More sharing options...
mikesta707 Posted October 11, 2009 Share Posted October 11, 2009 $steam_W = ($steam_Z*2) + 76561197960265728 + $steam_Y); echo (int)$steam_W; maybe? Quote Link to comment https://forums.phpfreaks.com/topic/177253-math-bugging/#findComment-934625 Share on other sites More sharing options...
Tuck Posted October 11, 2009 Author Share Posted October 11, 2009 $steam_W = ($steam_Z*2) + 76561197960265728 + $steam_Y); echo (int)$steam_W; maybe? this just returned "12594888" witch is total fail.. Quote Link to comment https://forums.phpfreaks.com/topic/177253-math-bugging/#findComment-934630 Share on other sites More sharing options...
Tuck Posted October 11, 2009 Author Share Posted October 11, 2009 $steam_W = bcmul($steam_Z, "2"); $steam_W = bcadd($steam_W, bcadd("76561197960265728", $steam_Y)); got it working with this. Quote Link to comment https://forums.phpfreaks.com/topic/177253-math-bugging/#findComment-934634 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.