public interface UBEReal
Modifier and Type | Method and Description |
---|---|
UBNatural |
getBase()
Gets base part of real value.
|
double |
getDouble()
Gets double value.
|
float |
getFloat()
Gets float value.
|
int |
getInt()
Gets short integer value.
|
long |
getLong()
Gets long integer value.
|
UBNatural |
getMantissa()
Gets mantissa part of real value.
|
boolean |
isInfinity()
Reads positive or negative infinity flag.
|
boolean |
isNegativeInfinity()
Reads negative infinity flag.
|
boolean |
isPositiveInfinity()
Reads positive infinity flag.
|
boolean |
isZero()
Returns if value is zero.
|
void |
setNegativeInfinity()
Sets value to negative infinity constant.
|
void |
setPositiveInfinity()
Sets value to positive infinity constant.
|
void |
setValue(double value)
Sets double value.
|
void |
setValue(float value)
Sets float value.
|
void |
setValue(int value)
Sets integer value.
|
void |
setValue(long value)
Sets long integer value.
|
int getInt() throws UBOverFlowException
UBOverFlowException
- if value is out of rangelong getLong() throws UBOverFlowException
UBOverFlowException
- if value is out of rangeboolean isZero()
float getFloat() throws UBOverFlowException
UBOverFlowException
- if value is out of rangedouble getDouble() throws UBOverFlowException
UBOverFlowException
- if value is out of rangevoid setValue(int value) throws UBOverFlowException
value
- integer valueUBOverFlowException
void setValue(long value) throws UBOverFlowException
value
- long integer valueUBOverFlowException
void setValue(float value) throws UBOverFlowException
value
- float valueUBOverFlowException
void setValue(double value) throws UBOverFlowException
value
- double valueUBOverFlowException
UBNatural getBase()
UBNatural getMantissa()
boolean isInfinity()
boolean isPositiveInfinity()
boolean isNegativeInfinity()
void setPositiveInfinity()
void setNegativeInfinity()