public final class DecimalFloat extends ReadOnlyDecimalFloat
Must support 15 significant digits, decimal places variable.
Decimal float represents the significant digits using a value field, and the location of the point using the scale field.
See http://fixwiki.org/fixwiki/FloatDataType for details. Examples:
55.36 55.3600 0055.36 0055.3600 .995 0.9950 25 -55.36 -0055.3600 -55.3600 -.995 -0.9950 -25
MAX_VALUE, MIN_VALUE, MISSING_FLOAT, NAN, scale, value, ZERO| Constructor and Description |
|---|
DecimalFloat() |
DecimalFloat(long value) |
DecimalFloat(long value,
int scale) |
| Modifier and Type | Method and Description |
|---|---|
DecimalFloat |
copy() |
boolean |
fromDouble(double doubleValue) |
DecimalFloat |
fromLong(long value)
Sets the value of the DecimalFloat to the same as a long value.
|
DecimalFloat |
fromString(java.lang.CharSequence string) |
DecimalFloat |
fromString(java.lang.CharSequence string,
int start,
int length) |
ReadOnlyDecimalFloat |
immutableCopy() |
DecimalFloat |
negate() |
static DecimalFloat |
newNaNValue() |
void |
reset()
Resets the encoder to the NAN value.
|
DecimalFloat |
scale(int scale)
Deprecated.
|
DecimalFloat |
set(long value,
int scale) |
DecimalFloat |
set(ReadOnlyDecimalFloat other) |
DecimalFloat |
value(long value)
Deprecated.
|
appendTo, compareTo, equals, hashCode, isNaNValue, isNaNValue, mutableCopy, scale, setAndNormalise, toDouble, toString, valuepublic DecimalFloat()
public DecimalFloat(long value)
public DecimalFloat(long value,
int scale)
public void reset()
ReadOnlyDecimalFloat.isNaNValue() method.public DecimalFloat set(ReadOnlyDecimalFloat other)
public DecimalFloat fromLong(long value)
value - the value to setpublic DecimalFloat set(long value, int scale)
@Deprecated public DecimalFloat value(long value)
@Deprecated public DecimalFloat scale(int scale)
public DecimalFloat negate()
public DecimalFloat copy()
public ReadOnlyDecimalFloat immutableCopy()
public boolean fromDouble(double doubleValue)
public DecimalFloat fromString(java.lang.CharSequence string)
public DecimalFloat fromString(java.lang.CharSequence string, int start, int length)
public static DecimalFloat newNaNValue()
Copyright © 2015-2022 Real Logic Limited. All Rights Reserved.