Page 1 of 1

### lap statistics "decimal minutes/seconds"

Posted: Sun May 26, 2019 5:41 pm
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

Posted: Mon Jun 03, 2019 2:13 pm
Hi,

Decimal minutes means the fractional part is decimal. Example:

2:30 would be 2.5 decimal minutes.

Hope this helps!

Posted: Tue Jun 04, 2019 12:50 pm
brentp wrote:Hi,

Decimal minutes means the fractional part is decimal. Example:

2:30 would be 2.5 decimal minutes.

Hope this helps!
Yep, it does! But just to make it even clearer for others:

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 = &#40;getLapTime&#40;&#41;%1&#41;*60
``````
lap_seconds_portion would be the actual number of seconds and not the decimal.