public class DfpDec extends Dfp
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.Modifier and Type | Method and Description |
---|---|
Dfp |
newInstance()
Create an instance with a value of 0.
|
Dfp |
newInstance(byte x)
Create an instance from a byte value.
|
Dfp |
newInstance(byte sign,
byte nans)
Creates an instance with a non-finite value.
|
Dfp |
newInstance(Dfp d)
Create an instance by copying an existing one.
|
Dfp |
newInstance(double x)
Create an instance from a double value.
|
Dfp |
newInstance(int x)
Create an instance from an int value.
|
Dfp |
newInstance(long x)
Create an instance from a long value.
|
Dfp |
newInstance(java.lang.String s)
Create an instance from a String representation.
|
Dfp |
nextAfter(Dfp x)
Returns the next number greater than this one in the direction of x.
|
add, ceil, classify, copysign, divide, divide, dotrap, equals, floor, getField, getOne, getRadixDigits, getTwo, getZero, greaterThan, hashCode, intValue, isInfinite, isNaN, lessThan, log10, log10K, multiply, multiply, negate, power10, power10K, remainder, rint, sqrt, subtract, toDouble, toSplitDouble, toString, unequal
public DfpDec(Dfp d)
d
- instance to copypublic Dfp newInstance()
newInstance
in class Dfp
public Dfp newInstance(byte x)
newInstance
in class Dfp
x
- value to convert to an instancepublic Dfp newInstance(int x)
newInstance
in class Dfp
x
- value to convert to an instancepublic Dfp newInstance(long x)
newInstance
in class Dfp
x
- value to convert to an instancepublic Dfp newInstance(double x)
newInstance
in class Dfp
x
- value to convert to an instancepublic Dfp newInstance(Dfp d)
newInstance
in class Dfp
d
- instance to copypublic Dfp newInstance(java.lang.String s)
newInstance
in class Dfp
s
- string representation of the instancepublic Dfp newInstance(byte sign, byte nans)
newInstance
in class Dfp
sign
- sign of the Dfp to createnans
- code of the value, must be one of Dfp.INFINITE
,
Dfp.SNAN
, Dfp.QNAN
Copyright © 2010 - 2020 Adobe. All Rights Reserved