Skip to Main Content
Oracle in a Nutshell
book

Oracle in a Nutshell

by Rick Greenwald, David C. Kreines
December 2002
Intermediate to advanced content levelIntermediate to advanced
928 pages
85h 29m
English
O'Reilly Media, Inc.
Content preview from Oracle in a Nutshell

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Internals

Oracle Internals

Donald K. Burleson
Oracle PL/SQL

Oracle PL/SQL

Lewis Cunningham
Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Rick Greenwald, Robert Stackowiak, Jonathan Stern

Publisher Resources

ISBN: 0596003366Errata Page