dconv 2.0
C++14 library for printing and parsing floating point numbers
Loading...
Searching...
No Matches
grisu3.hpp File Reference
#include <dconv/grisu2.hpp>
#include <charconv>
#include <cstdint>
Include dependency graph for grisu3.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  dconv
 
namespace  dconv::grisu3
 

Functions

bool dconv::grisu3::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 dconv::grisu3::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 dconv::grisu3::fallback (char *buffer, int &length, int &k, double value) noexcept
 write the shortest and closest decimal digits using the standard library.
 
void dconv::grisu3::generate (char *buffer, int &length, int &k, double value) noexcept
 write the shortest and closest decimal digits.
 
char * dconv::grisu3::dtoa (char *buffer, double value) noexcept
 double to string conversion using Grisu3.