rastaman46 Posted March 30, 2012 Share Posted March 30, 2012 hello again how to get ratio with result max 3 numbers such as 3.00 or 0.11 if im do $mynumbers = 1000 / 400; so reusult to be 1.00 ? and how to put full stop if it is more then 4 numbers result instead of 1000 to have 1.000 Quote Link to comment https://forums.phpfreaks.com/topic/260020-ratio-from-two-numbers/ Share on other sites More sharing options...
requinix Posted March 30, 2012 Share Posted March 30, 2012 Both questions can be answered with a link to number_format. Quote Link to comment https://forums.phpfreaks.com/topic/260020-ratio-from-two-numbers/#findComment-1332780 Share on other sites More sharing options...
rastaman46 Posted March 30, 2012 Author Share Posted March 30, 2012 thanks Quote Link to comment https://forums.phpfreaks.com/topic/260020-ratio-from-two-numbers/#findComment-1332783 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.