Numeric functions
This page goes over the numeric functions in Upsolver.
ABS
ABS
Returns the absolute value of a number.
input | result |
|
|
|
|
|
|
ADD
ADD
Adds two numbers together.
operand 1 | operand 2 | result |
|
|
|
|
|
|
|
|
|
CEILING
CEILING
Returns the smallest integer value that is greater than or equal to the value.
input | result |
|
|
|
|
COS
COS
Returns the cosine of the value in radians.
input | result |
|
|
|
|
|
|
|
|
|
|
DEGREES
DEGREES
Converts the specified radians to degrees.
input | result |
|
|
|
|
|
|
DIVIDE
DIVIDE
Divides the first number by the second.
operand 1 | operand 2 | result |
|
|
|
|
|
|
|
|
|
EXP
EXP
A mathematical function that returns the exponential value of the specified number where is the input value.
input | result |
|
|
|
|
|
|
|
|
FLOOR
FLOOR
Returns the largest integer value that is equal to or less than the value.
input | result |
|
|
|
|
GET_PROCESSING_TIME
GET_PROCESSING_TIME
Gets the task time.
Inputs
time
— Must be the time field from the data.
GREATEST
GREATEST
Return the maximum value.
inputs | result |
|
|
INTEGER_DIVIDE
INTEGER_DIVIDE
Divides the first number by the second and returns the integer part of the result.
operand 1 | operand 2 | result |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LN
LN
Returns the natural logarithm of the input.
Input
such that
Return value
or where
input | result |
|
|
|
|
|
|
|
|
|
|
LOG
LOG
Returns the logarithm of input .
Input
such that
base — The base to use for the logarithm.
Return value
base | result | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MOD
MOD
Returns the remainder of the first number divided by the second.
operand 1 | operand 2 | result |
|
|
|
|
|
|
|
|
|
MULTIPLY
MULTIPLY
Multiplies two numbers.
operand 1 | operand 2 | result |
|
|
|
|
|
|
NEGATE
NEGATE
Negates the input value.
input | result |
|
|
|
|
POWER
POWER
A mathematical function that raises the first value to the power of the second value.
Inputs
base
exponent
base | exponent | result |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RADIANS
RADIANS
Converts the specified degrees to radians.
input | result |
|
|
|
|
|
|
RECIPROCAL
RECIPROCAL
Returns the reciprocal where is the input value.
input | result |
|
|
|
|
|
|
|
|
ROUND
ROUND
Returns the value rounded to a certain number of decimal places.
Inputs
value — The number to round.
precision — The number of decimal places to keep; defaults to 0.
value | precision | result |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
SIGN
SIGN
Returns a value (1, 0, or -1) indicating the sign of the value.
input | result |
|
|
|
|
|
|
SIN
SIN
Returns the sine of the value in radians.
input | result |
|
|
|
|
|
|
|
|
|
|
SQRT
SQRT
A mathematical function that returns the square root of the value.
input | result |
|
|
|
|
SQUARE
SQUARE
A mathematical function that returns the square of the value.
input | result |
|
|
|
|
SUBTRACT
SUBTRACT
Subtracts the second number from the first.
operand 1 | operand 2 | result |
|
|
|
|
|
|
TAN
TAN
Returns the tangent of the value in radians using Java's Math.tan
method.
input | result |
|
|
|
|
|
|
|
|
|
|
TAN_H
TAN_H
Returns the hyperbolic tangent of the value in radians using Java's Math.tanh
method.
input | result |
|
|
|
|
|
|
|
|
|
|
TRUNC
TRUNC
Returns the value truncated to a certain number of decimal places.
Inputs
value - The number to truncate.
precision - The number of decimal places to keep; defaults to 0.
value | precision | result |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
Last updated