Numeric

The Postgres <i>NUMERIC</i> type.

Members

Functions

bigDecimalValue
BigDecimal bigDecimalValue()

@return the numeric value represented by this object after conversion to type {@code BigDecimal}. It can be {@code null} when this instance represents the {@code NaN} value.

bigIntegerValue
BigInteger bigIntegerValue()

@return the numeric value represented by this object after conversion to type {@code BigInteger}. It can be {@code null} when this instance represents the {@code NaN} value.

byteValue
byte byteValue()
Undocumented in source. Be warned that the author may not have intended to support it.
doubleValue
double doubleValue()
Undocumented in source. Be warned that the author may not have intended to support it.
floatValue
float floatValue()
Undocumented in source. Be warned that the author may not have intended to support it.
intValue
int intValue()
Undocumented in source. Be warned that the author may not have intended to support it.
isNaN
bool isNaN()

@return {@code true} when this number represents {@code NaN}

longValue
long longValue()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object obj)
Undocumented in source. Be warned that the author may not have intended to support it.
shortValue
short shortValue()
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

NaN
Numeric NaN()

Constant for the {@code NaN} value.

create
Numeric create(Number number)

Return a {@code Numeric} instance for the given {@code number}. <p/> Null values or infinite {@code Double} or {@code Float} are rejected.

parse
Numeric parse(string s)

Parse and return a {@code Numeric} instance for the given {@code s}. <p/> The string {@code "Nan"} will return the {@link #NaN} instance.

Meta