| Method | Defined By | ||
|---|---|---|---|
void abs() Changes this numeric to an unsigned value. | ISQLNumeric | ||
void ceil() Changes this numeric to the smallest integer greater than or equal to it. | ISQLNumeric | ||
void floor() Changes this numeric to the greatest integer less than or equal to it. | ISQLNumeric | ||
BigDecimal getBigDecimal() Get the value of this numeric as a decimal. | ISQLNumeric | ||
double getDouble() Get the value of this numeric as a double. | ISQLNumeric | ||
int getInt() Get the value of this numeric as an integer. | ISQLNumeric | ||
long getLong() Get the value of this numeric as an integer. | ISQLNumeric | ||
void round(int n) Changes this numeric to its value rounded to n places right of the decimal point. | ISQLNumeric | ||
void set(int v) Set the value of this numeric with the specified integer. | ISQLNumeric | ||
void set(double v) Set the value of this numeric with the specified double. | ISQLNumeric | ||
void set(BigDecimal v) Set the value of this numeric with the specified decimal. | ISQLNumeric | ||
void set(long v) Set the value of this numeric with the specified long. | ISQLNumeric | ||
int sign() Returns an integer indicating the sign of this numeric. | ISQLNumeric | ||
void trunc(int n) Changes this numeric to its value truncated to n places right of the decimal point. | ISQLNumeric | ||
| abs | () |
public void abs()Changes this numeric to an unsigned value. Nothing is done if the value is a SQL NULL.
RuntimeException — iff the value is a SQL NULL |
| ceil | () |
public void ceil()Changes this numeric to the smallest integer greater than or equal to it.
RuntimeException — iff the value is a SQL NULL |
| floor | () |
public void floor()Changes this numeric to the greatest integer less than or equal to it.
RuntimeException — iff the value is a SQL NULL |
| getBigDecimal | () |
public BigDecimal getBigDecimal()Get the value of this numeric as a decimal.
Returns| java.math.BigDecimal value |
RuntimeException — on overflow or if value is a SQL NULL |
| getDouble | () |
public double getDouble()Get the value of this numeric as a double.
Returns| double value |
RuntimeException — on overflow or if value is a SQL NULL |
| getInt | () |
public int getInt()Get the value of this numeric as an integer.
Returns| integer value |
RuntimeException — on overflow or if value is a SQL NULL |
| getLong | () |
public long getLong()Get the value of this numeric as an integer.
Returns| integer value |
RuntimeException — on overflow or if value is a SQL NULL |
| round | () |
public void round(int n)Changes this numeric to its value rounded to n places right of the decimal point. N can be negative to round off digits left of the decimal point.
Parameters
n — number of places to the right of the decimal point |
RuntimeException — iff the value is a SQL NULL |
| set | () |
public void set(int v)Set the value of this numeric with the specified integer.
Parameters
v — an integer value |
RuntimeException — on overflow |
| set | () |
public void set(double v)Set the value of this numeric with the specified double.
Parameters
v — a double value |
RuntimeException — on overflow |
| set | () |
public void set(BigDecimal v)Set the value of this numeric with the specified decimal.
Parameters
v — a decimal value |
RuntimeException — on overflow |
| set | () |
public void set(long v)Set the value of this numeric with the specified long.
Parameters
v — a long value |
RuntimeException — on overflow |
| sign | () |
public int sign()Returns an integer indicating the sign of this numeric.
Returns| -1 (-ve), 0 (zero) or 1 (+ve). |
RuntimeException — iff the value is a SQL NULL |
| trunc | () |
public void trunc(int n)Changes this numeric to its value truncated to n places right of the decimal point. N can be negative to truncate digits left of the decimal point.
Parameters
n — number of places to the right of the decimal point |
RuntimeException — iff the value is a SQL NULL |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/javadoc/com/celequest/api/type/ISQLNumeric.html