dconv 2.0
C++14 library for printing and parsing floating point numbers
Loading...
Searching...
No Matches
grisu.hpp File Reference
#include <dconv/grisupow.hpp>
#include <dconv/format.hpp>
#include <cassert>
#include <cstring>
#include <cstdint>
Include dependency graph for grisu.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::grisu
 
namespace  dconv::grisu::details
 

Functions

char * dconv::grisu::details::dtoa (char *buffer, double value, void(*generate)(char *, int &, int &, double) noexcept) noexcept
 double to string conversion with the given digits generator.
 
const DiyFp & dconv::grisu::cachedPower (int exponent, int &k) noexcept
 get the cached power of ten that scales a binary exponent into the digit generation range.
 
void dconv::grisu::generate (char *buffer, int &length, int &k, double value) noexcept
 write the decimal digits of the scaled value.
 
char * dconv::grisu::dtoa (char *buffer, double value) noexcept
 double to string conversion using Grisu.