Index

Decimal

A decimal floating point number. T

DividedWithRemainder
Mode

A strategy for rounding the result of an operation on two Decimals.

Rounding

Holds precision and rounding information for use in decimal arithmetic. A

ceiling

Round towards positive infinity.

decimalNumber()

The given number converted to a Decimal.

down

Round towards zero.

floor

Round towards negative infinity.

halfDown

Round towards the nearest neighbour, or round down if there are two nearest neighbours.

halfEven

Round towards the nearest neighbour, or round towards the even neighbour if there are two nearest neighbours.

halfUp

Round towards the nearest neighbour, or round up if there are two nearest neighbours.

implicitRounding

The rounding currently being used implicitly by the Decimal operators +, -, *, / and ^ (or equivalently, the methods

implicitlyRounded()

Performs an arbitrary calculation with the given rounding used implicitly when arithmetic operators are applied to

one

A Decimal instance representing one.

parseDecimal()

The Decimal represented by the given string, or null if the given string does not represent a Decimal.

round()

Creates a rounding with the given precision and mode.

ten

A Decimal instance representing ten.

unlimitedPrecision

Unlimited precision.

unnecessary

Asserts that rounding will not be required causing an exception to be thrown if it is.

up

Round away from zero.

zero

A Decimal instance representing zero.