You are here:
Numeric Operators and Functions for Unconverted Formulas
Use numeric functions to calculate values from measures in your recipe. For example, you can round, truncate, and determine the absolute value of a number. The arguments for numeric functions can be numbers or measure columns. If your recipe was upgraded to Data Prep, but your recipe doesn’t convert, this topic is for your unconverted recipe.
When entering a formula, column names must be enclosed in square brackets. Also, use the API name of the column in the expression, not the label. For example, you can enter the following expression.
round([Total_Amount]/[Unit_Price], 2)You can use these math operators.
You can also use these numeric functions in an expression.
| Numeric Function | Description | Syntax |
|---|---|---|
abs
|
Calculates the absolute value of a number. The absolute value of a number is the number without its positive or negative sign. |
number is a number or measure column that you want to determine the absolute value of. Example: |
ceil
|
Rounds a number up to the nearest integer. |
number is a number or measure column that you want to round up to the nearest integer. |
exp
|
Returns a value of e raised to the exponent that you specify. |
number is a number or measure column to which you want to raise e. |
floor
|
Returns a number rounded down to the nearest integer. |
number is a number or measure column that you want to round down to the nearest integer. |
log
|
Returns the logarithm of the number in the base that you specify. |
base is a number or measure column used as the base of the logarithm. number is a number or measure column that you want to take the logarithm of. |
power
|
Raises a number to the power of another number. |
number is a number or measure column that you want to raise to the specified power. power is a number or measure column that is the power that you want to raise the specified number to. |
round
|
Returns the nearest number to a number you specify, constraining the new number by a specified number of digits. |
number is a number or measure column that you want to round. numberOfDigits is a number or measure column that specifies the number of digits to round the specified number to. |
sqrt
|
Returns the positive square root of a given number. |
number is a number or measure column that you want to find the square root of. |
trunc
|
Truncates a number to an integer. |
number is a number or measure column that you want to truncate to an integer. |

