double helper type. More...
#include <Double.h>
Public Member Functions | |
| Double (const double d) | |
| Double (const Double &d) | |
| virtual int32 | HashCode () const |
| virtual bool | Equals (const IComparable *a) const |
| virtual int | Compare (const IComparable *a) const |
| virtual bool | Equals (const IComparable &a) const |
| virtual int | Compare (const IComparable &a) const |
| virtual int32 | MajicNumber () const |
| Class instances with the same majic number are of the same type (can be casted). Majic numbers above 0xFFFF are available for user applications. | |
| virtual int | ToInt () const |
| virtual double | ToDouble () const |
| virtual StringPtr | ToString () const |
| operator double () | |
| virtual void | ValidateMem () const |
| virtual void | CheckMem () const |
Static Public Member Functions | |
| static float64 | Parse (const char *cp, const int cplen) |
| static float64 | Parse (const String &str) |
| static float64 | Parse (const String *str) |
| static bool | IsDouble (const char *cp, const int cplen) |
| static bool | IsDouble (const String &str) |
| static bool | IsDouble (const String *str) |
| static bool | IsFloat (const char *cp, const int cplen) |
| static bool | IsFloat (const String &str) |
| static bool | IsFloat (const String *str) |
| static StringPtr | ToString (float64 i) |
| static StringPtr | ToString (float32 i) |
| static bool | IsNaN (double d) |
| static bool | IsPositiveZero (double d) |
| static bool | IsNegativeZero (double d) |
| static double | PositiveInfinity () |
| static double | NegativeInfinity () |
| static bool | IsPositiveInfinity (double d) |
| static bool | IsNegativeInfinity (double d) |
double helper type.
Definition at line 35 of file Double.h.
| static bool Double::IsDouble | ( | const String * | str | ) | [inline, static] |
Test if the argument can be parsed to a double.
| str | string representation of a floating point number. |
Definition at line 119 of file Double.h.
References IsDouble().
Referenced by IsDouble().
| static bool Double::IsDouble | ( | const String & | str | ) | [inline, static] |
Test if the argument can be parsed to a double.
| str | string representation of a floating point number. |
Definition at line 111 of file Double.h.
References IsDouble().
Referenced by IsDouble().
| bool Double::IsDouble | ( | const char * | cp, | |
| const int | cplen | |||
| ) | [static] |
Test if the argument can be parsed to a double.
| cp | string representation of a floating point number. | |
| cplen | the length of cp. |
Definition at line 915 of file Numeric.cpp.
Referenced by IsFloat().
| static bool Double::IsFloat | ( | const String * | str | ) | [inline, static] |
Test if the argument can be parsed to a float.
| str | string representation of a floating point number. |
Definition at line 144 of file Double.h.
References IsDouble().
| static bool Double::IsFloat | ( | const String & | str | ) | [inline, static] |
Test if the argument can be parsed to a float.
| str | string representation of a floating point number. |
Definition at line 136 of file Double.h.
References IsDouble().
| static bool Double::IsFloat | ( | const char * | cp, | |
| const int | cplen | |||
| ) | [inline, static] |
Test if the argument can be parsed to a float.
| cp | string representation of a floating point number. | |
| cplen | the length of cp. |
Definition at line 128 of file Double.h.
References IsDouble().
| bool Double::IsNaN | ( | double | d | ) | [static] |
Determine if target is not a number
| d | target number |
Definition at line 875 of file Numeric.cpp.
| static bool Double::IsNegativeInfinity | ( | double | d | ) | [inline, static] |
Determine if target is negative infinity
| d | target number |
Definition at line 219 of file Double.h.
References NegativeInfinity().
| bool Double::IsNegativeZero | ( | double | d | ) | [static] |
Determine if target is negative 0
| d | target number |
Definition at line 885 of file Numeric.cpp.
| static bool Double::IsPositiveInfinity | ( | double | d | ) | [inline, static] |
Determine if target is positive infinity
| d | target number |
Definition at line 208 of file Double.h.
References PositiveInfinity().
| bool Double::IsPositiveZero | ( | double | d | ) | [static] |
Determine if target is positive 0.
| d | target number |
Definition at line 880 of file Numeric.cpp.
| double Double::NegativeInfinity | ( | ) | [static] |
Determine if target is negative infinity
| d | target number |
Definition at line 895 of file Numeric.cpp.
Referenced by IsNegativeInfinity().
| static float64 Double::Parse | ( | const String * | str | ) | [inline, static] |
| static float64 Double::Parse | ( | const String & | str | ) | [inline, static] |
| float64 Double::Parse | ( | const char * | cp, | |
| const int | cplen | |||
| ) | [static] |
Convert the argument to a double.
| InvalidArgumentException | if the argument cannot be parsed. |
| cp | string representation of a floating point number. | |
| cplen | the length of cp in bytes. |
Definition at line 910 of file Numeric.cpp.
| double Double::PositiveInfinity | ( | ) | [static] |
Determine if target is positive 0.
| d | target number |
Definition at line 890 of file Numeric.cpp.
Referenced by IsPositiveInfinity().
| static StringPtr Double::ToString | ( | float32 | i | ) | [inline, static] |
Creates a string representation of the value
| i | target number |
Definition at line 160 of file Double.h.
References ToString().
Referenced by ToString().
| StringPtr Double::ToString | ( | float64 | i | ) | [static] |
Creates a string representation of the value
| i | target number |
Definition at line 920 of file Numeric.cpp.