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 <typeinfo>
#include <universal/internal/blockbinary/blockbinary.hpp>
#include <universal/internal/blockbinary/to_decimal.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned N, typename B, BinaryNumberType T>
std::string sw::universal::type_tag (const blockbinary< N, B, T > &={})
template<unsigned nbits, typename BlockType, BinaryNumberType NumberType>
std::string sw::universal::to_binary (const blockbinary< nbits, BlockType, NumberType > &number, bool nibbleMarker=false)
template<unsigned nbits, typename BlockType, BinaryNumberType NumberType>
std::string sw::universal::to_hex (const blockbinary< nbits, BlockType, NumberType > &number, bool nibbleMarker=true)