Whether or not I can simulate lap data [1] I have a question about the lap statistics "decimal minutes/seconds" --
Is the output of the function a decimal number of seconds which will always be less than 59?
In other words, is a value of 2.30 "two minutes and thirty seconds" or something else?
[1] viewtopic.php?t=6149
lap statistics "decimal minutes/seconds"
Yep, it does! But just to make it even clearer for others:brentp wrote:Hi,
Decimal minutes means the fractional part is decimal. Example:
2:30 would be 2.5 decimal minutes.
Hope this helps!
The decimal value of the lap statistic is the equivalent of:
x (sec) / 60
So to convert the decimal part to actual seconds, multiply back by 60.
In Lua terms:
Code: Select all
lap_seconds_portion = (getLapTime()%1)*60