Quote:
Originally Posted by Awesome_man
How to reduce decimal place like this is my output : 34.220508 Minutes
How to make it 34:22 minutes also when i'm using integer it's showing very big value like 1256456744 etc
|
.220508 doesn't mean 22 seconds. That's basic math:
PHP Code:
34.220508 * 100 / 60 = 57.03418 seconds
floatround(57.03418) = 57 seconds
Make your code according to that formula.
__________________