public class MilStd1750A extends Object
| Constructor and Description |
|---|
MilStd1750A(BigInteger value,
int encodingSize)
Constructor for base 10 or base 16 representations of a raw MILSTD
1750A floating point representation.
|
MilStd1750A(double value,
int encodingSize)
Constructor for native IEEE754 representations of a raw MILSTD
1750A floating point number.
|
| Modifier and Type | Method and Description |
|---|---|
double |
toIeeeDouble()
Retrieves this MILSTD modeled value as an IEEE754 double, which is the
native representation for Java.
|
long |
toRawBits()
Retrieves this MILSTD modeled value as a raw binary value, in the form
of a long integer representation for binary encoding.
|
String |
toString()
Retrieves this MILSTD modeled value as a string printable floating
point value.
|
public MilStd1750A(BigInteger value, int encodingSize)
value - BigInteger containing the value as it would be raw
encoded.encodingSize - int containing the number of bits represented.IllegalArgumentException - in the event that the encoding size is
not one of the allowable values of 16, 32, or 48.public MilStd1750A(double value,
int encodingSize)
value - double containing the IEEE754 native representation of a
value to be encoded in MILSTD 1750A.encodingSize - int containing the number of bits to be represented.IllegalArgumentException - in the event that the encoding size is
not one of the allowable values of 16, 32, or 48.public double toIeeeDouble()
public long toRawBits()
Copyright © 2015–2019. All rights reserved.