Base Framework
|
#include <base/Double.h>
Inherits Object.
Public Member Functions | |
Double () noexcept | |
Double (double _value) noexcept | |
Double (const Double ©) noexcept | |
Double & | operator= (const Double &assign) noexcept |
Double & | operator= (double value) noexcept |
double | getValue () const noexcept |
void | setValue (double value) noexcept |
bool | isNegative () const noexcept |
double | getSign () const noexcept |
bool | isOrdinary () const noexcept |
bool | isInfinity () const noexcept |
bool | isNaN () const noexcept |
bool | isQuiteNaN () const noexcept |
bool | isSignalingNaN () const noexcept |
operator double () const noexcept | |
Static Public Member Functions | |
static double | getMinimum () noexcept |
static double | getMaximum () noexcept |
static double | getEpsilon () noexcept |
static double | getInfinity () noexcept |
static double | getNaN () noexcept |
Protected Attributes | |
double | value = 0 |
|
inlinenoexcept |
Initializes the value as zero.
|
inlinenoexcept |
Initializes the double 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 double.
|
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 the double primitive.
|
inlinenoexcept |
Assignment of this value by double primitive.
|
inlinenoexcept |
Sets the value of the double.
value | The desired value. |
|
protected |
The value.