Neoview JDBC Type 4 Driver API Reference (R2.2, R2.3, R2.4, R2.5)

The default value is ROUND_HALF_EVEN.
setRoundingMode
public void setRoundingMode(int roundMode)
Sets the round mode behaviour for the driver.
Parameters:
roundMode - Integer value with one of the values:
static int ROUND_CEILING
Rounding mode to round toward positive infinity.
static int ROUND_DOWN
Rounding mode to round toward zero.
static int ROUND_FLOOR
Rounding mode to round toward negative infinity.
static int ROUND_HALF_DOWN
Rounding mode to round toward "nearest neighbor" unless both
neighbors are equidistant, in which case round down.
static int ROUND_HALF_EVEN
Rounding mode to round toward the "nearest neighbor" unless
both neighbors are equidistant, in which case, round towards the even neighbor.
static int ROUND_HALF_UP
Rounding mode to round toward "nearest neighbor" unless both
neighbors are equidistant, in which case round up.
static int ROUND_UNNECESSARY
Rounding mode to assert that the requested operation has an exact
result; hence no rounding is necessary.
static int ROUND_UP
Rounding mode to round away from zero.
The default value is ROUND_HALF_EVEN.
Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD