Numeric functions
This page goes over the numeric functions in Upsolver.
ABS
ABS
Returns the absolute value of a number.
ADD
ADD
Adds two numbers together.
CEILING
CEILING
Returns the smallest integer value that is greater than or equal to the value.
COS
COS
Returns the cosine of the value in radians.
DEGREES
DEGREES
Converts the specified radians to degrees.
DIVIDE
DIVIDE
Divides the first number by the second.
EXP
EXP
A mathematical function that returns the exponential value of the specified number where is the input value.
FLOOR
FLOOR
Returns the largest integer value that is equal to or less than the value.
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.
INTEGER_DIVIDE
INTEGER_DIVIDE
Divides the first number by the second and returns the integer part of the result.
LN
LN
Returns the natural logarithm of the input.
Input
such that
Return value
or where
LOG
LOG
Returns the logarithm of input .
Input
such that
base — The base to use for the logarithm.
Return value
MOD
MOD
Returns the remainder of the first number divided by the second.
MULTIPLY
MULTIPLY
Multiplies two numbers.
NEGATE
NEGATE
Negates the input value.
POWER
POWER
A mathematical function that raises the first value to the power of the second value.
Inputs
base
exponent
RADIANS
RADIANS
Converts the specified degrees to radians.
RECIPROCAL
RECIPROCAL
Returns the reciprocal where is the input value.
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.
SIGN
SIGN
Returns a value (1, 0, or -1) indicating the sign of the value.
SIN
SIN
Returns the sine of the value in radians.
SQRT
SQRT
A mathematical function that returns the square root of the value.
SQUARE
SQUARE
A mathematical function that returns the square of the value.
SUBTRACT
SUBTRACT
Subtracts the second number from the first.
TAN
TAN
Returns the tangent of the value in radians using Java's Math.tan
method.
TAN_H
TAN_H
Returns the hyperbolic tangent of the value in radians using Java's Math.tanh
method.
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.
Last updated