I'm trying to convert the decimals of minutes as a float to seconds.
So if it were 50.429 minutes, it would be 50 minutes and 25 seconds
I've tried converting the float value to int and subtracting it from the original float and multiplying it by 60
ex)
((50.429-(int)50.429)*60)
but this gives me a 26 seconds instead of 25.
I really need to get back to the basics; what's going on here?
Is there a better way to do this? (without using floor)
thanks :/
So if it were 50.429 minutes, it would be 50 minutes and 25 seconds
I've tried converting the float value to int and subtracting it from the original float and multiplying it by 60
ex)
((50.429-(int)50.429)*60)
but this gives me a 26 seconds instead of 25.
I really need to get back to the basics; what's going on here?
Is there a better way to do this? (without using floor)
thanks :/


































