public class FloatValue extends AbstractValue
| Modifier and Type | Field and Description |
|---|---|
protected IntegerValue |
exponent |
protected Double |
f |
static IntegerValue |
FLOAT_NaN |
static IntegerValue |
FLOAT_NEGATIVE_INFINITY |
static IntegerValue |
FLOAT_POSITIVE_INFINITY |
static IntegerValue |
FLOAT_SPECIAL_VALUES |
protected IntegerValue |
mantissa |
protected int |
slenMantissa |
slen, valueType| Constructor and Description |
|---|
FloatValue(IntegerValue mantissa,
IntegerValue exponent) |
FloatValue(long mantissa,
long exponent) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_equals(FloatValue o) |
boolean |
equals(Object o) |
void |
getCharacters(char[] cbuffer,
int offset)
Fills character array with the value represented as String
|
int |
getCharactersLength()
Length of string representation
|
IntegerValue |
getExponent()
Integer represents the 10-based exponent of the floating point number
|
IntegerValue |
getMantissa()
Integer represents the mantissa of the floating point number
|
int |
hashCode() |
static FloatValue |
parse(double d) |
static FloatValue |
parse(float f) |
static FloatValue |
parse(String value) |
Double |
toDouble() |
Float |
toFloat() |
String |
toString()
Returns string representation.
|
String |
toString(char[] cbuffer,
int offset)
Returns string representation by making use of the passed character
array.
|
getCharacters, getValueTypeprotected final IntegerValue mantissa
protected final IntegerValue exponent
protected int slenMantissa
public static IntegerValue FLOAT_SPECIAL_VALUES
public static IntegerValue FLOAT_NEGATIVE_INFINITY
public static IntegerValue FLOAT_POSITIVE_INFINITY
public static IntegerValue FLOAT_NaN
protected Double f
public FloatValue(IntegerValue mantissa, IntegerValue exponent)
public FloatValue(long mantissa,
long exponent)
public IntegerValue getMantissa()
public IntegerValue getExponent()
public static FloatValue parse(String value)
public static FloatValue parse(float f)
public static FloatValue parse(double d)
public Float toFloat()
public Double toDouble()
public int getCharactersLength()
Valuepublic void getCharacters(char[] cbuffer,
int offset)
Valuecbuffer - character bufferoffset - character buffer offsetpublic String toString()
ValuetoString in interface ValuetoString in class AbstractValueStringpublic String toString(char[] cbuffer, int offset)
ValuetoString in interface ValuetoString in class AbstractValuecbuffer - character bufferoffset - character buffer offsetprotected final boolean _equals(FloatValue o)
Copyright © 2018 Siemens AG. All rights reserved.