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 :/ 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; 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.. 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? 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.. 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. Link to comment https://forums.phpfreaks.com/topic/177253-math-bugging/#findComment-934634 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.