Base Framework
|
#include <base/Float.h>
Inherits Object.
Public Member Functions | |
Float () noexcept | |
Float (float _value) noexcept | |
Float (const Float ©) noexcept | |
Float & | operator= (const Float &assign) noexcept |
Float & | operator= (float value) noexcept |
float | getValue () const noexcept |
void | setValue (float value) noexcept |
bool | isNegative () const noexcept |
float | getSign () const noexcept |
bool | isOrdinary () const noexcept |
bool | isInfinity () const noexcept |
bool | isNaN () const noexcept |
bool | isQuiteNaN () const noexcept |
bool | isSignalingNaN () const noexcept |
operator float () const noexcept | |
Static Public Member Functions | |
static float | getMinimum () noexcept |
static float | getMaximum () noexcept |
static float | getEpsilon () noexcept |
static float | getInfinity () noexcept |
static float | getNaN () noexcept |
Protected Attributes | |
float | value = 0 |
|
inlinenoexcept |
Initializes the value as zero.
|
inlinenoexcept |
Initializes the float with the specified value. Implicit initialization is allowed.
value | The desired value. |
|
inlinenoexcept |
Initializes the value by other value.
|
staticnoexcept |
The difference between 1 and the least value greater than 1 that is representable in the given floating point type.
|
inlinestaticnoexcept |
Returns infinity.
|
staticnoexcept |
Maximum representable finite floating-point number (2^e_max).
|
staticnoexcept |
Minimum normalized positive floating-point number (2^(e_min-1)).
|
inlinestaticnoexcept |
Returns quiet NaN. Signaling NaN should be avoided due to platform inconsistencies.
|
inlinenoexcept |
Returns the sign.
|
inlinenoexcept |
Returns the value of the float.
|
inlinenoexcept |
Returns true if the value is either +INFINITY or -INFINITY.
|
inlinenoexcept |
Returns true if the value is Not a Number (NaN).
|
inlinenoexcept |
Returns true if the value is negative.
|
inlinenoexcept |
Returns true if the value is an ordinary number (not infinity or NaN).
|
inlinenoexcept |
Returns true if the value is a quite NaN. A NaN that behaves predictably and does not raise exceptions in arithmetic operations is called a quiet NaN.
|
inlinenoexcept |
Returns true if the value is a signaling NaN. A NaN that generally raises an exception when encountered as an operand of arithmetic operations is called a signaling NaN.
|
inlinenoexcept |
Casts value to float primitive.
|
inlinenoexcept |
Assignment of this value by float primitive.
|
inlinenoexcept |
Sets the value of the float.
value | The desired value. |
|
protected |
The value.