I have a variable time = (float)route / (float)speed; which is 3,96. I wondering if there is some methods to convert this number automatically in to the time? For example 3,96 i need to transform into 4,36.
I have a variable time = (float)route / (float)speed; which is 3,96. I wondering
Share
Actually the “time” you’re getting is not: 3 hours and 96 minutes, but it is really: 3 hours and 0.96 (or 96%) of one hour:
Output: