- May
- 609
- 4
Say you want to express 15 minutes and 30 seconds as a fraction of an hour.
Charles Dye already has a function @timefmt[hh:mm:ss,15] which will display that time as fractions of a day. So, if you force the hours to zero, and multiply by 24, you can get mm:ss as fractions of an hour. Or fractions of a degree of arc.
Charles Dye already has a function @timefmt[hh:mm:ss,15] which will display that time as fractions of a day. So, if you force the hours to zero, and multiply by 24, you can get mm:ss as fractions of an hour. Or fractions of a degree of arc.
Code:
echo %@eval[%@timefmt[00:mm:ss,15]*24 =.4]