|
dconv 2.0
C++14 library for printing and parsing floating point numbers
|
Functions | |
| bool | roundWeed (char *buffer, int length, uint64_t wpW, uint64_t delta, uint64_t rest, uint64_t tenKappa, uint64_t ulp) noexcept |
| round the last digit to the closest value and check it is safe. | |
| bool | digitsGen (const DiyFp &low, const DiyFp &w, const DiyFp &high, char *buffer, int &length, int &k) noexcept |
| generate the shortest digits within the liberal boundaries. | |
| void | fallback (char *buffer, int &length, int &k, double value) noexcept |
| write the shortest and closest decimal digits using the standard library. | |
| void | generate (char *buffer, int &length, int &k, double value) noexcept |
| write the shortest and closest decimal digits. | |
| char * | dtoa (char *buffer, double value) noexcept |
| double to string conversion using Grisu3. | |
|
inlinenoexcept |
generate the shortest digits within the liberal boundaries.
| low | lower boundary. |
| w | value. |
| high | upper boundary. |
| buffer | buffer to write the digits to. |
| length | number of digits written. |
| k | decimal exponent. |
|
inlinenoexcept |
double to string conversion using Grisu3.
| buffer | buffer to write the string representation to (must point to at least 25 writable bytes). |
| value | value to convert. |
|
inlinenoexcept |
write the shortest and closest decimal digits using the standard library.
| buffer | buffer to write the digits to. |
| length | number of digits written. |
| k | decimal exponent. |
| value | positive value to convert. |
|
inlinenoexcept |
write the shortest and closest decimal digits.
| buffer | buffer to write the digits to. |
| length | number of digits written. |
| k | decimal exponent. |
| value | positive value to convert. |
|
inlinenoexcept |
round the last digit to the closest value and check it is safe.
| buffer | generated digits. |
| length | number of generated digits. |
| wpW | distance between the liberal upper boundary and the value. |
| delta | liberal interval size. |
| rest | distance between the liberal upper boundary and the generated number. |
| tenKappa | scaled power of ten of the last digit. |
| ulp | scaled unit of the approximation error. |