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 <sstream>
#include <string>
#include <universal/internal/blockfraction/blockfraction.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, typename bt>
std::string sw::universal::to_binary (const blockfraction< nbits, bt > &number, bool nibbleMarker=false)
template<unsigned nbits, typename bt>
std::string sw::universal::to_hex (const blockfraction< nbits, bt > &number, bool wordMarker=true)