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.BigDecimalBigDecNum
) NUMBER(java.math.BigIntegerBigIntNum
) NUMBER(booleanboolNum
) NUMBER(bytebyteNum
) NUMBER(byte[]num
) NUMBER(doubledoubleNum
) NUMBER(floatfloatNum
) NUMBER(intintNum
) NUMBER(java.lang.Objectobj
) NUMBER(java.lang.StringStringNum
, intscale
) NUMBER(longlongNum
) NUMBER(shortshortNum
)
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.