kigroy Posted December 18, 2008 Share Posted December 18, 2008 how do i limit the number of decimal places displayed when performing math functions in php? Quote Link to comment Share on other sites More sharing options...
xtopolis Posted December 18, 2008 Share Posted December 18, 2008 sprintf I believe. Plenty of examples if you scroll down. Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted December 18, 2008 Share Posted December 18, 2008 yup, sprintf() will work. You also can use round, if you want. Quote Link to comment Share on other sites More sharing options...
kigroy Posted December 18, 2008 Author Share Posted December 18, 2008 Thanks! Worked great! Quote Link to comment 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.