public class FixedPointDecimal extends Object
Fixed-point decimal, with 16-bit integer and 16-bit fraction.
Constructor and Description |
---|
FixedPointDecimal(double value)
Initializes a new instance of the
FixedPointDecimal class. |
FixedPointDecimal(int integer,
int fraction)
Initializes a new instance of the
FixedPointDecimal class. |
FixedPointDecimal(long value)
Initializes a new instance of the
FixedPointDecimal class. |
Modifier and Type | Method and Description |
---|---|
int |
getFraction()
Gets or sets the fraction.
|
int |
getInteger()
Gets or sets the integer.
|
void |
setFraction(int value)
Gets or sets the fraction.
|
void |
setInteger(int value)
Gets or sets the integer.
|
double |
toDouble()
Converts current fixed point decimal to double.
|
public FixedPointDecimal(int integer, int fraction)
Initializes a new instance of the FixedPointDecimal
class.
integer
- The integer.fraction
- The fraction.public FixedPointDecimal(long value)
Initializes a new instance of the FixedPointDecimal
class. Split the high and low words of a 32-bit integer into a fixed-point number.
value
- The value.public FixedPointDecimal(double value)
Initializes a new instance of the FixedPointDecimal
class.
value
- The value.com.aspose.ms.System.OverflowException
public int getInteger()
Gets or sets the integer.
Value: The integer.public void setInteger(int value)
Gets or sets the integer.
Value: The integer.public int getFraction()
Gets or sets the fraction.
Value: The fraction.public void setFraction(int value)
Gets or sets the fraction.
Value: The fraction.public double toDouble()
Converts current fixed point decimal to double.