Construct an OracleNumber from a JavaScript number or a string.
StaticeThe e constant.
Staticln10The ln10 constant.
StaticpiThe pi constant.
StaticzeroThe zero constant.
Computes the absolute value of the Oracle number
the absolute value of the Oracle number
Adds an Oracle number to another Oracle number
the other Oracle number
returns the sum of the two Oracle NUMBERs
Note: since Oracle 23.5, this + other can be used instead.
Computes the arc cosine in radians of the Oracle number
the arc cosine in radians of the Oracle number
Computes the arc sine in radians of the Oracle number
the arc sine in radians of the Oracle number
Computes the arc tangent in radians of the Oracle number
the arc tangent in radians of the Oracle number
Computes the arc tangent of two Oracle numbers
Oracle number used for the calculation
the arc tangent of two Oracle numbers
Compares two Oracle numbers. Returns -1 if this < other, 0 if they are equal, and 1 if this > other.
the result of the comparison as a number between -1 and +1.
Note: since Oracle 23.5, <, <=, >=, > can be used instead.
Divides two Oracle numbers
divisor
the result of the division as Oracle number
Note: since Oracle 23.5, this / other can be used instead.
Checks if the Oracle number is equal to another Oracle number
the other Oracle number
true if both Oracle numbers are equal, otherwise false
Note: since Oracle 23.5, == or != can be used instead.
Raises e to the power of this Oracle number
the result of the exponentiation as Oracle number
Computes the hyperbolic cosine of the Oracle number
the hyperbolic cosine of the Oracle number
Computes the hyperbolic sine of the Oracle number
the hyperbolic sine of the Oracle number
Computes the hyperbolic tangent of the Oracle number
the hyperbolic tangent of the Oracle number
Tests if the number is an integer
true if the Oracle number is an integer, otherwise false
Tests if the number is zero
true if the Oracle number is zero, otherwise false
Computes the natural logarithm of the Oracle number
the natural logarithm of the Oracle number
Computes the logarithm to an arbitrary base
the base of the logarithm
the logarithm to an arbitrary base
Computes the modulus of two Oracle numbers.
the other Oracle number
this number modulo the other number
Note: since Oracle 23.5, this % other can be used instead.
Multiplies the Oracle number with another Oracle number
the other Oracle number
the result of the multiplication as Oracle number
Note: since Oracle 23.5, this * other can be used instead.
Negates the number
the negated Oracle number
Note: since Oracle 23.5, -this can be used instead.
Raises this Oracle number to the given exponent
the result of the exponentiation
Note: since Oracle 23.5, this ** other can be used instead.
Rounds the number to a specified number of digits
the number of digits
the rounded Oracle number
Rounds the Oracle number to a specified number of decimal places
the decimal place
the rounded Oracle number
Scales the digits to the left and right of the decimal point.
maximum number of decimal digits to the left of the decimal point. It will not effect the number, but throw an exception if this value is exceeded.
maximum number of decimal digits to the right of the decimal point. The number is rounded at this point. Negative values are allowed.
a new scaled Oracle number scaled according to the arguments
Shifts the number by the specified number of decimal places
number of decimal places to shift. It can be negative. Positive values shift the decimal place to the right and negative values to the left. For example, if NUMBER corresponds to 1234.5 and digits == -1, the new NUMBER object will correspond to 123.45.
an Oracle number containing the shifted result
Note: since Oracle 23.5, this >> other or this << -other can be used instead.
Returns -1 if the sign of the number is negative, 0 if the number is 0, and > 0 if the number is positive.
a number indicating the sign of the Oracle number
Computes the square root of the Oracle number
the square root of the Oracle number
Subtracts an Oracle number from the Oracle number and returns the resulting Oracle number
the other number to be subtracted from the OracleNumber
the result of the subtraction as OracleNumber
Note: since Oracle 23.5, this - other can be used instead.
Converts an Oracle NUMBER to type number
the converted number
Converts an Oracle NUMBER to a string, with an optional number format and NLS parameters. If no format string and NLS parameters are provided, the default values for the session are used.
Optionalformat: stringoptional number format
OptionalnlsParam: stringoptional NLS parameters
the converted string
Truncates the number to the specified number of decimal places.
Number of decimal digits to the right of the decimal point at which to truncate. Negative values are allowed.
a truncated Oracle number
StaticfromConstruct an OracleNumber from a JavaScript number.
a new OracleNumber object
StaticfromParse a string into an OracleNumber, with an optional number format and NLS parameters. If no format string and NLS parameters are provided, the default values for the session are used.
the number string
Optionalformat: stringoptional number format
OptionalnlsParam: stringoptional NLS parameters
OracleNumber value from parsing the input string
JavaScript API for Oracle type NUMBER. Since Oracle 23.5, this class also supports infix operator arithmetics: +, -, /, *, etc.