Mathematical Functions

int()

int returns the integer part of a number, for example
int(6.7) - returns 6

sqrt()

sqrt returns the square root of a number, for example:
sqrt(9) - returns 3

quersumme()

quersumme returns the cross sum of a number, for example:
quersumme(423) - returns 9

abs()

abs returns the absolute value of a result or a calculation, by converting negative numbers to positive numbers:

 

abs(-9) - returns 9

 

abs(18) - returns 18

Example:

in a regularity race where rankings are based on the precision of each participant in a specific timing point based on a specific time-table, you may want to calculate the absolute difference between the theoretical time and the real time and then rank participants from the more precise to the less precise.

By using abs(), negative times are treated as positive, and this makes it easy to evaluate the best performance of each athlete.

 

round()

The round functions rounds a number. The second parameter is optional and defines how many decimal places shall remain:
round(3.149) - returns 3
round(3.149;2) - returns 3.15

speed()

La función Speed() calcula la velocidad en km/h (unidades métricas) o mph (unidades imperiales) según las unidades de medida en su configuración básica, por ejemplo.

speed([Time10.Decimal])

Si la distancia no es la duración de la competencia, se puede agregar como un segundo parámetro, esto utilizará la unidad de la configuración de la competencia.

El tercer parámetro es opcionalmente la unidad como:
metros - "m"
kilometros - "km"
millas - "miles"

Por Ejemplo:

speed([Time10.Decimal]; 5)
speed([Time10.Decimal]; 5000; "m")

Usando la funcion format se le puede dar formato al output facilmente:

format(speed([Time10.Decimal]); "s.k") & " mph"

pace()

The function pace calculates the pace in minutes per kilometer (metric units) or minutes per mile (imperial units), according to the units of measurement in your basic settings, for example

pace([Time10.Decimal])

If the distance shall not be the length of the contest, it can be added as a second paramter, this will use the unit from your contest settings.

The third parameter is optionally the unit as either:
meters - "m"
kilometers - "km"
miles - "miles"

For example

pace([Time10.Decimal]; 5)
pace([Time10.Decimal]; 5000; "m")

Using the format function the output can be formatted easily:

format(pace([Time10.Decimal]); "m:ss") & " min/mile"