Dfp which hides the radix-10000 artifacts of the superclass.
This should give outward appearances of being a decimal number with DIGITS*4-3
decimal digits. This class can be subclassed to appear to be an arbitrary number
of decimal digits less than DIGITS*4-3.
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected | |
| protected | |
| public | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected int | Returns: number of decimal digits this class is going to representGet the number of decimal digits this class is going to represent. |
| public Dfp | newInstance()
Overrides org. Create an instance with a value of 0. |
| public Dfp | newInstance(final byte
value to convert to an instance x)Overrides org. Create an instance from a byte value. |
| public Dfp | newInstance(final int
value to convert to an instance x)Overrides org. Create an instance from an int value. |
| public Dfp | newInstance(final long
value to convert to an instance x)Overrides org. Create an instance from a long value. |
| public Dfp | newInstance(final double
value to convert to an instance x)Overrides org. Create an instance from a double value. |
| public Dfp | newInstance(final Dfp
instance to copy d)Overrides org. Create an instance by copying an existing one. |
| public Dfp | newInstance(final String
string representation of the instance s)Overrides org. Create an instance from a String representation. |
| public Dfp | newInstance(final byte
sign of the Dfp to create sign, final byte nans)Overrides org. Creates an instance with a non-finite value. |
| public Dfp | nextAfter(Dfp
direction where to look at x)Overrides org. Returns the next number greater than this one in the direction of x. |
| protected int | round(int
??? in)Overrides org. Round this given the next digit n using the current rounding mode. |
| DfpDec | back to summary |
|---|---|
| protected DfpDec(final DfpField factory) Makes an instance with a value of zero.
| |
| DfpDec | back to summary |
|---|---|
| protected DfpDec(final DfpField factory, byte x) Create an instance from a byte value.
| |
| DfpDec | back to summary |
|---|---|
| protected DfpDec(final DfpField factory, int x) Create an instance from an int value.
| |
| DfpDec | back to summary |
|---|---|
| protected DfpDec(final DfpField factory, long x) Create an instance from a long value.
| |
| DfpDec | back to summary |
|---|---|
| protected DfpDec(final DfpField factory, double x) Create an instance from a double value.
| |
| DfpDec | back to summary |
|---|---|
| public DfpDec(final Dfp d) Copy constructor.
| |
| DfpDec | back to summary |
|---|---|
| protected DfpDec(final DfpField factory, final String s) Create an instance from a String representation. | |
| DfpDec | back to summary |
|---|---|
| protected DfpDec(final DfpField factory, final byte sign, final byte nans) Creates an instance with a non-finite value. | |
| getDecimalDigits | back to summary |
|---|---|
| protected int getDecimalDigits() Get the number of decimal digits this class is going to represent.
Default implementation returns
| |
| newInstance | back to summary |
|---|---|
| public Dfp newInstance() Overrides org. Doc from org. Create an instance with a value of 0. Use this internally in preference to constructors to facilitate subclasses | |
| newInstance | back to summary |
|---|---|
| public Dfp newInstance(final byte x) Overrides org. Doc from org. Create an instance from a byte value. | |
| newInstance | back to summary |
|---|---|
| public Dfp newInstance(final int x) Overrides org. Doc from org. Create an instance from an int value. | |
| newInstance | back to summary |
|---|---|
| public Dfp newInstance(final long x) Overrides org. Doc from org. Create an instance from a long value. | |
| newInstance | back to summary |
|---|---|
| public Dfp newInstance(final double x) Overrides org. Doc from org. Create an instance from a double value. | |
| newInstance | back to summary |
|---|---|
| public Dfp newInstance(final Dfp d) Overrides org. Doc from org. Create an instance by copying an existing one. Use this internally in preference to constructors to facilitate subclasses. | |
| newInstance | back to summary |
|---|---|
| public Dfp newInstance(final String s) Overrides org. Doc from org. Create an instance from a String representation. Use this internally in preference to constructors to facilitate subclasses. | |
| newInstance | back to summary |
|---|---|
| public Dfp newInstance(final byte sign, final byte nans) Overrides org. Doc from org. Creates an instance with a non-finite value. | |
| nextAfter | back to summary |
|---|---|
| public Dfp nextAfter(Dfp x) Overrides org. Doc from org. Returns the next number greater than this one in the direction of x. If this==x then simply returns this. | |
| round | back to summary |
|---|---|
| protected int round(int in) Overrides org. Doc from org. Round this given the next digit n using the current rounding mode.
| |