vj5 Posted March 11, 2008 Share Posted March 11, 2008 I want to round the below calculation:$pers = $totalcurrent / $totalbase; Right now, it displays 1.7%. I want it as 170.00%. Can someone please help? Link to comment Share on other sites More sharing options...
grippat Posted March 11, 2008 Share Posted March 11, 2008 Why not just multiply the calculated percentage by 100? Link to comment Share on other sites More sharing options...
Wander Posted March 11, 2008 Share Posted March 11, 2008 and with the number_format function u can make it show a set amount of decimals Link to comment Share on other sites More sharing options...
vj5 Posted March 11, 2008 Author Share Posted March 11, 2008 Why not just multiply the calculated percentage by 100?Thank you. It works well. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.