GREL Math Functions - tfmorris/OpenRefine GitHub Wiki
Math functions supported by the OpenRefine Expression Language (GREL)
See also: All GREL functions.
Returns the floor of a number. For example, floor(3.7) returns 3 and floor(-3.7) returns -4.
Returns the ceiling of a number. For example, ceil(3.7) returns 4 and ceil(-3.7) returns -3.
Rounds a number to the nearest integer. For example, round(3.7) returns 4 and round(-3.7) returns -4.
Returns the smaller of two numbers.
Returns the larger of two numbers.
Returns d1 modulus d2. For examples, mod(74, 9) returns 2.
Returns the natural log of d.
Returns the base 10 log of d.
Returns e raised to the power of d.
Returns d raised to the power of e. For example, pow(2, 3) returns 8 (2 cubed) and pow(3, 2) returns 9 (3 squared).
The Square Root of any numeric value is expressed pow(value, 0.5)
Returns the sum of numbers in a.