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

Functions

constexpr int dconv::schubfach::floorLog10Pow2 (int q, bool asymmetric) noexcept
 compute floor (log10 (2^q)) or floor (log10 (3/4 * 2^q)).
 
constexpr int dconv::schubfach::floorLog2Pow10 (int k) noexcept
 compute floor (log2 (10^k)).
 
uint64_t dconv::schubfach::roundToOdd (const details::Power &g, uint64_t cp) noexcept
 multiply by a power of ten and round to odd.
 
uint64_t dconv::schubfach::shortest (double value, int &k) noexcept
 compute the shortest decimal significand.
 
void dconv::schubfach::generate (char *buffer, int &length, int &k, double value) noexcept
 write the shortest decimal digits.
 
char * dconv::schubfach::dtoa (char *buffer, double value) noexcept
 double to string conversion using Schubfach.