Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
teju_formatter.hpp File Reference
#include <algorithm>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <universal/number/support/teju.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::teju_detail

Functions

void sw::universal::teju_detail::append_exponent (std::string &str, int e, bool uppercase)
std::vector< int > sw::universal::teju_detail::extract_digits (uint64_t m)
std::string sw::universal::teju_detail::format_scientific (const std::vector< int > &digits, int sci_exponent, std::streamsize precision, bool uppercase)
std::string sw::universal::teju_detail::format_fixed (const std::vector< int > &digits, int sci_exponent, std::streamsize precision)
void sw::universal::teju_detail::apply_width (std::string &s, std::streamsize width, bool internal_align, bool left, char fill)
template<unsigned fbits, BlockTripleOperator op, typename bt>
std::string sw::universal::teju_to_string (const blocktriple< fbits, op, bt > &v, std::streamsize precision=6, std::streamsize width=0, bool fixed=false, bool scientific=false, bool internal_align=false, bool left=false, bool showpos=false, bool uppercase=false, char fill=' ')
 Convert a blocktriple to a formatted decimal string using the Teju Jagua algorithm.
template<unsigned fbits, BlockTripleOperator op, typename bt>
std::ostream & sw::universal::teju_insert (std::ostream &ostr, const blocktriple< fbits, op, bt > &v)
 Stream inserter using Teju Jagua for blocktriple values.