Math Calculated Fields
All functions in the Math category will be useful for you to perform
calculations on the fly. Certain functions, like the rand and the
randbetween functions, are particularly useful to randomize the order
of the rows in your data source.
Math functions
| Function Name | Syntax and Sample | 
|---|---|
| abs: absreturns the absolute value (the number without the sign) for a number you enter. | Syntax: abs({number})Sample: abs(-3) | 
| exp: expreturns e (Euler's Number) raised to a value you enter. | Syntax: exp({number})Sample: exp(8) | 
| log: logreturns the logarithm of a number to the base that you specify in the arguments. If no base is entered, the base is assumed to be "10". | Syntax: log({number},{logbase})Sample: log(10,4) | 
| log10: log10returns the logarithm of a number to the base 10. | Syntax: log10({number})Sample: log10(1500) | 
| mod: modreturns the remainder, or fractional part, of a division between two numbers. | Syntax: mod({number},{divisor})Sample: mod(5,3) | 
| rand: randreturns Real numbers larger than 0 and smaller than 1. The function takes no arguments but can be used with mathematical operators for further modifications. | Syntax: rand()Sample: rand() | 
| randbetween: randbetweenreturns integer numbers within a specified range. | Syntax: randbetween({bottom},{top})Sample: randbetween(0,9878654) | 
| sign: signdetermines and returns the sign of a number. | Syntax: sign({number})Sample: sign(-1564) | 
| sqrt: sqrtreturns the square root of a specified number. | Syntax: sqrt({number})Sample: sqrt(427716) | 
| trunc: truncreturns the integer part of a number, excluding any decimals. | Syntax: trunc({number})Sample: trunc(65787.24657) |