TheSky Posted May 22, 2011 Share Posted May 22, 2011 (substr($killdeaths=$Kills/$Deaths,0,4)); im sure im doing it wrong Link to comment https://forums.phpfreaks.com/topic/237100-show-only-4-values-after-dividing/ Share on other sites More sharing options...
wildteen88 Posted May 22, 2011 Share Posted May 22, 2011 Use number_format rather than substr maybe? Link to comment https://forums.phpfreaks.com/topic/237100-show-only-4-values-after-dividing/#findComment-1218629 Share on other sites More sharing options...
TheSky Posted May 22, 2011 Author Share Posted May 22, 2011 thanks Link to comment https://forums.phpfreaks.com/topic/237100-show-only-4-values-after-dividing/#findComment-1218637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.