You are here:
Omnistudio Mathematical Functions
Functions that operate on numbers.
- Omnistudio ABS Function
Returns the absolute value of a numeric expression. - Omnistudio ROUND function
Rounds a numeric expression up or down to a specified level of precision. - Omnistudio SQRT Function
Returns the square root of a numeric expression.
Omnistudio ABS Function
Returns the absolute value of a numeric expression.
Signature
ABS(expression)
Return Value
Number
Parameters
Parameter |
Data Type |
Necessity |
Description |
|---|---|---|---|
|
Number |
Required |
An expression that resolves to the number for which the absolute value is to be returned. |
Formula: ABS(4)
Return value: 4
Formula: ABS(-4.50)
Return value: 4.5
Formula: ABS(2 - (2 * 3))
Return value: 4
Omnistudio ROUND function
Rounds a numeric expression up or down to a specified level of precision.
Signature
ROUND(expression, precision, direction)
Return Value
Number
Parameters
Parameter |
Data Type |
Necessity |
Description |
|---|---|---|---|
|
Number |
Required |
An expression that resolves to the number to be rounded. |
|
Integer |
Optional |
A non-negative integer that indicates the number of decimal places to which to round
the result. Specify If the number has fewer decimal places than the specified precision, the function returns only the lower number of decimal places. Specify a precision of 0 to return an integer. By default, the function rounds the result to two decimal places of precision. |
|
Constant |
Optional |
A constant that indicates the direction in which to round the result:
By default, the function rounds up or down based on the digit to the right of the least significant digit of the result (to the right of the specified level of precision). If you specify a direction, you must also specify a precision. |
Formula: ROUND(4.115)
Return value: 4.12
Formula: ROUND(4.115, 0)
Return value: 4
Formula: ROUND(2.119, 2, DOWN)
Return value: 2.11
Formula: ROUND(2.111, 2, UP)
Return value: 2.12
Formula: ROUND(2.55, 1, FLOOR)
Return value: 2.5
Formula: ROUND(2.55, 1, CEILING)
Return value: 2.6
Formula: ROUND(2.5, 0, FLOOR)
Return value: 2
Formula: ROUND(2.5, 0, CEILING)
Return value: 3
Formula: ROUND(2.575, 2, HALF_DOWN)
Return value: 2.57
Formula: ROUND(2.575, 2, HALF_UP)
Return value: 2.58
Formula: ROUND(2.225, 2, HALF_EVEN)
Return value: 2.22
Omnistudio SQRT Function
Returns the square root of a numeric expression.
Signature
SQRT(expression)
Return Value
Number
Parameters
Parameter |
Data Type |
Necessity |
Description |
|---|---|---|---|
|
Number |
Required |
An expression that resolves to the non-negative number for which the square root is to be returned. |
Formula: SQRT(3 * 12)
Return value: 6
Formula: SQRT(2.5)
Return value: 1.5811388300841898
Formula: SQRT(-4)
Return value: {}

