DecimalBase

public class DecimalBase

The Decimal class provides operations on numbers for arithmetic, scale handling, rounding, comparison, and format conversion (eg. to string), while retaining precision across platforms so that it can be used for currency

Fields

DEFAULT_PRECISION

public static final int DEFAULT_PRECISION

The default precision or number of digits to the right of the decimal separator.

mScale

final int mScale

mValue

final long mValue

Constructors

DecimalBase

public DecimalBase(int scale, long value)

Methods

getScale

public int getScale()

The scale or number of digits to the right of the decimal separator.

getValue

public long getValue()

The value of the number without applying the scale.

toString

public String toString()