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 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. 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 Link to comment https://forums.phpfreaks.com/topic/260020-ratio-from-two-numbers/#findComment-1332783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.