convert double numbers to hex strings and vice versa
More...
#include <d2hex.h>
|
static double | hex2d (const string &hexer) |
|
static string | d2hex (const double d) |
|
static unsigned int | hexDigit2dec (const char hexDigit) |
|
static char | dec2hexDigit (const unsigned int decDigit) |
|
static double | hex2d (const string &hexer) |
|
static string | d2hex (const double d) |
|
static unsigned int | hexDigit2dec (const char hexDigit) |
|
static char | dec2hexDigit (const unsigned int decDigit) |
|
convert double numbers to hex strings and vice versa
Convert double precision numbers to thier raw hex representaion and vice versa.
Definition at line 30 of file d2hex.h.
static string doubleHexConverter::d2hex |
( |
const double |
d | ) |
|
|
inlinestatic |
Convert a double precision number into a hexadecimal string
Computes a hex value that represents a 64 bit double precision number
- Parameters
-
d | [in] the double precision number |
- Returns
- the hexadicaml string encoding the number passed in
Definition at line 68 of file d2hex.h.
static string doubleHexConverter::d2hex |
( |
const double |
d | ) |
|
|
inlinestatic |
Convert a double precision number into a hexadecimal string
Computes a hex value that represents a 64 bit double precision number
- Parameters
-
d | [in] the double precision number |
- Returns
- the hexadicaml string encoding the number passed in
Definition at line 69 of file d2hex.h.
static char doubleHexConverter::dec2hexDigit |
( |
const unsigned int |
decDigit | ) |
|
|
inlinestatic |
Convert a decimal digit to a hexadecimal character value
- Parameters
-
decDigit | [in] the decimal digit (0-15) |
- Returns
- the hex character representing the digit
Definition at line 117 of file d2hex.h.
static char doubleHexConverter::dec2hexDigit |
( |
const unsigned int |
decDigit | ) |
|
|
inlinestatic |
Convert a decimal digit to a hexadecimal character value
- Parameters
-
decDigit | [in] the decimal digit (0-15) |
- Returns
- the hex character representing the digit
Definition at line 118 of file d2hex.h.
static double doubleHexConverter::hex2d |
( |
const string & |
hexer | ) |
|
|
inlinestatic |
convert a hexadecimal double precision number into double.
Assumes the hex value is a 64 bit double precision number
- Parameters
-
hexer | [in] the hexadecimal string |
- Returns
- a double containing the number indicated by hexer
Definition at line 42 of file d2hex.h.
static double doubleHexConverter::hex2d |
( |
const string & |
hexer | ) |
|
|
inlinestatic |
convert a hexadecimal double precision number into double.
Assumes the hex value is a 64 bit double precision number
- Parameters
-
hexer | [in] the hexadecimal string |
- Returns
- a double containing the number indicated by hexer
Definition at line 43 of file d2hex.h.
static unsigned int doubleHexConverter::hexDigit2dec |
( |
const char |
hexDigit | ) |
|
|
inlinestatic |
Convert a hexadecimal digit to a decimal digit.
- Parameters
-
hexDigit | [in] a character containign a hex value. |
- Returns
- the decimal digit indicated by the hex value (0-15).
Definition at line 104 of file d2hex.h.
static unsigned int doubleHexConverter::hexDigit2dec |
( |
const char |
hexDigit | ) |
|
|
inlinestatic |
Convert a hexadecimal digit to a decimal digit.
- Parameters
-
hexDigit | [in] a character containign a hex value. |
- Returns
- the decimal digit indicated by the hex value (0-15).
Definition at line 105 of file d2hex.h.
The documentation for this class was generated from the following file: