|
dconv 2.0
C++14 library for printing and parsing floating point numbers
|
Namespaces | |
| namespace | details |
Functions | |
| const DiyFp & | cachedPower (int exponent, int &k) noexcept |
| get the cached power of ten that scales a binary exponent into the digit generation range. | |
| void | generate (char *buffer, int &length, int &k, double value) noexcept |
| write the decimal digits of the scaled value. | |
| char * | dtoa (char *buffer, double value) noexcept |
| double to string conversion using Grisu. | |
|
inlinenoexcept |
get the cached power of ten that scales a binary exponent into the digit generation range.
| exponent | binary exponent of the normalized value. |
| k | decimal exponent of the scaled value. |
|
inlinenoexcept |
double to string conversion using Grisu.
| buffer | buffer to write the string representation to (must point to at least 26 writable bytes). |
| value | value to convert. |
|
inlinenoexcept |
write the decimal digits of the scaled value.
| buffer | buffer to write the digits to. |
| length | number of digits written. |
| k | decimal exponent. |
| value | positive value to convert. |