Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
manipulators.hpp File Reference
#include <cstdint>
#include <string>
#include <sstream>
#include <iomanip>
#include <universal/number/microfloat/core.hpp>
#include <universal/number/microfloat/microfloat_fwd.hpp>
#include <universal/utility/color_print.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, unsigned es, bool hasInf, bool hasNaN, bool isSaturating>
std::string sw::universal::type_tag (const microfloat< nbits, es, hasInf, hasNaN, isSaturating > &={})
template<unsigned nbits, unsigned es, bool hasInf, bool hasNaN, bool isSaturating>
std::string sw::universal::to_hex (const microfloat< nbits, es, hasInf, hasNaN, isSaturating > &v, bool=false, bool hexPrefix=true)
template<unsigned nbits, unsigned es, bool hasInf, bool hasNaN, bool isSaturating>
std::string sw::universal::to_triple (const microfloat< nbits, es, hasInf, hasNaN, isSaturating > &number, bool=false)
template<unsigned nbits, unsigned es, bool hasInf, bool hasNaN, bool isSaturating>
std::string sw::universal::color_print (const microfloat< nbits, es, hasInf, hasNaN, isSaturating > &r, bool=false)
template<unsigned nbits, unsigned es, bool hasInf, bool hasNaN, bool isSaturating>
std::string sw::universal::to_binary (microfloat< nbits, es, hasInf, hasNaN, isSaturating > mf, bool bNibbleMarker=false)
template<unsigned nbits, unsigned es, bool hasInf, bool hasNaN, bool isSaturating>
std::string sw::universal::to_native (microfloat< nbits, es, hasInf, hasNaN, isSaturating > mf, bool nibbleMarker=false)