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 <iomanip>
#include <sstream>
#include <string>
#include <type_traits>
#include <typeinfo>
#include <universal/number/efloat/core.hpp>
#include <universal/utility/color_print.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nlimbs>
std::string sw::universal::to_binary (const efloat< nlimbs > &number, bool nibbleMarker=false)
template<unsigned nlimbs>
std::string sw::universal::type_tag (const efloat< nlimbs > &={})
template<typename EfloatType, std::enable_if_t< is_efloat< EfloatType >, bool > = true>
std::string sw::universal::components (const EfloatType &v)
template<typename EfloatType, std::enable_if_t< is_efloat< EfloatType >, bool > = true>
std::string sw::universal::to_triple (const EfloatType &v)
template<typename EfloatType, std::enable_if_t< is_efloat< EfloatType >, bool > = true>
std::string sw::universal::to_hex (const EfloatType &v, bool nibbleMarker=false, bool hexPrefix=true)
template<typename EfloatType, std::enable_if_t< is_efloat< EfloatType >, bool > = true>
std::string sw::universal::hex_print (const EfloatType &c)
template<typename EfloatType, std::enable_if_t< is_efloat< EfloatType >, bool > = true>
std::string sw::universal::pretty_print (const EfloatType &r)
template<typename EfloatType, std::enable_if_t< is_efloat< EfloatType >, bool > = true>
std::string sw::universal::info_print (const EfloatType &p, int printPrecision=17)
template<typename EfloatType, std::enable_if_t< is_efloat< EfloatType >, bool > = true>
std::string sw::universal::color_print (const EfloatType &r, bool nibbleMarker=false)