TheSky Posted May 22, 2011 Share Posted May 22, 2011 (substr($killdeaths=$Kills/$Deaths,0,4)); im sure im doing it wrong Quote 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? Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.