Numeric functions
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
The table in this topic lists the numeric functions that ODBC supports.
The numeric functions listed can take the following arguments:
-
numeric_exp can be a column name, a numeric
literal, or the result of another scalar function, where the underlying
data type is
SQL_NUMERIC,SQL_DECIMAL,SQL_TINYINT,SQL_SMALLINT,SQL_INTEGER,SQL_FLOAT,SQL_REAL, orSQL_DOUBLE. -
float_exp can be a column name, a numeric literal,
or the result of another scalar function, where the underlying data type
is
SQL_FLOAT. -
integer_exp can be a column name, a numeric literal,
or the result of another scalar function, where the underlying data type
is
SQL_TINYINT,SQL_SMALLINT, orSQL_INTEGER.
| Numeric function | Returns |
|---|---|
|
Absolute value of numeric_exp. |
|
Arccosine of float_exp as an angle in radians. |
|
Arcsine of float_exp as an angle in radians. |
|
Arctangent of float_exp as an angle in radians. |
|
Arctangent of the x and y coordinates, specified by float_exp1 and float_exp2 as an angle in radians. |
|
Smallest integer greater than or equal to numeric_exp. |
|
Cosine of float_exp as an angle in radians. |
|
Cotangent of float_exp as an angle in radians. |
|
Number of degrees converted from numeric_exp radians. |
|
Exponential value of float_exp. |
|
Largest integer less than or equal to numeric_exp. |
|
Natural log of float_exp. |
|
Base 10 log of float_exp. |
|
Remainder of integer_exp1 divided
by integer_exp2. |
|
Constant value of pi as a floating-point number. |
|
Value of numeric_exp to the power of integer_exp. |
|
Number of radians converted from numeric_exp degrees. |
|
Random floating-point value using integer_exp as the optional seed value. |
|
numeric_exp rounded to integer_exp places right of the decimal (left of the decimal if integer_exp is negative). |
|
Indicator of the sign of numeric_exp. If numeric_exp <0, -1 is returned. If numeric_exp = 0, 0 is returned. If numeric_exp > 0, 1 is returned. |
|
Sine of float_exp, where float_exp is an angle in radians. |
|
Square root of float_exp. |
|
Tangent of float_exp, where float_exp is an angle in radians. |
|
numeric_exp truncated to integer_exp places right of the decimal. (If integer_exp is negative, truncation is to the left of the decimal.) |