NUMBER

Extends oracle.sql.Datum. Used for conversion between Oracle number types and Java number types.

The constructors for this class are:

NUMBER(  )
NUMBER(java.math.BigDecimal BigDecNum)
NUMBER(java.math.BigInteger BigIntNum)
NUMBER(boolean boolNum)
NUMBER(byte byteNum)
NUMBER(byte[] num)
NUMBER(double doubleNum)
NUMBER(float floatNum)
NUMBER(int intNum)
NUMBER(java.lang.Object obj)
NUMBER(java.lang.String StringNum, int scale)
NUMBER(long longNum)
NUMBER(short shortNum)

Each of these constructors uses the variable as the initialization value. The java.lang.String constructor uses scale for the scale of the converted number.

Methods

abs( )

Returns NUMBER initialized to the absolute value of NUMBER.

acos( )

Returns NUMBER initialized to the arc cosine value of NUMBER.

add(NUMBER n)

Returns NUMBER initialized to the value of the NUMBER value and n.

asin( )

Returns NUMBER initialized to the arc sine value of NUMBER.

atan( )

Returns NUMBER initialized to the arc tangent value of NUMBER.

atan2(NUMBER x )

Returns NUMBER initialized to the value of atan2(NUMBER/x).

bigDecimalValue( )

Returns java.math.BigDecimal conversion of internal Oracle Number.

bigIntegerValue( )

Returns java.math.BigInteger conversion of internal Oracle Number.

booleanValue( )

Returns Boolean conversion of internal Oracle Number.

byteValue( )

Returns byte conversion of internal Oracle Number.

ceil( )

Returns NUMBER initialized to the ceiling of NUMBER value.

compareTo(NUMBER n)

Returns -1 if NUMBER is less than ...

Get Oracle in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.