CerealBH Posted March 15, 2009 Share Posted March 15, 2009 i need to chop off the decimals i thought just casting as a (int) would do it but it dosn't, i tired looking at formating but that helped non (int) $page = $numpeople / 15; Link to comment https://forums.phpfreaks.com/topic/149460-variable-with-no-decimals-problem/ Share on other sites More sharing options...
.josh Posted March 15, 2009 Share Posted March 15, 2009 $page = (int) ($numpeople / 15); Link to comment https://forums.phpfreaks.com/topic/149460-variable-with-no-decimals-problem/#findComment-784988 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.