The following functions can be used to perform operations on numeric values.
Note: The functions
exp
, ln
,
log
, max
and min
are only available
in Talend Cloud Pipeline Designer.Function | Description | Arguments | Example |
---|---|---|---|
abs
|
Returns the absolute value of a number. | Numeric value. | Expression: abs(-3)
Result: |
ceil
|
Returns the smallest integer greater than the input value. If the input value is an integer, the result is the same as the input. | Numeric value. | Expression: ceil(5.1)
Result: |
exp | Returns the constant e to the power of the first
argument. |
Numeric value. | Expression: exp(2)
Result: |
floor
|
Returns the largest integer smaller than the input value. If the input value is an integer, the result is the same as the input. | Numeric value. | Expression: floor(42.9)
Result: |
ln | Returns the logarithm of the first argument to the base of the constant
e . |
Numeric value. | Expression: ln(15)
Result: |
log | Returns the logarithm of the first argument to the base of
10 . |
Numeric value. | Expression: log(25)
Result: |
min | Returns the smallest of two numeric values. |
|
Expression: min(1.5, 60)
Result: |
max | Returns the largest of two numeric values. |
|
Expression: max(1752,687)
Result: |
power
|
Returns the first argument to the power of the second argument. |
|
Expression: power(5,3)
Result: |
round
|
Returns the integer closest to the input value. | Numeric value. | Expression: round(45.6)
Result: |
sign
|
Returns 1.0 if the input value is a positive number
and -1.0 if the input is a negative number. |
Numeric value. | Expression: sign(15)
Result: |
sqrt
|
Returns the square root of the argument. | Numeric value. | Expression: sqrt(25)
Result: |