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 <exception>
#include <string>
#include <sstream>
#include <iomanip>
#include <universal/utility/color_print.hpp>
#include <universal/native/integer_type_tag.hpp>
#include <universal/native/integers.hpp>
#include <universal/internal/blockbinary/manipulators.hpp>
#include <universal/number/support/decimal.hpp>
#include <universal/number/integer/core.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::convert_to_decimal_string (const integer< nbits, BlockType, NumberType > &value)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::to_string (const integer< nbits, BlockType, NumberType > &n)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::to_binary (const integer< nbits, BlockType, NumberType > &number, bool nibbleMarker=false)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::to_native (const integer< nbits, BlockType, NumberType > &number, bool nibbleMarker=false)
std::string sw::universal::integer_number_type_tag (IntegerNumberType nt)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::type_tag (const integer< nbits, BlockType, NumberType > &={})
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::type_field (const integer< nbits, BlockType, NumberType > &={})
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::to_hex (const integer< nbits, BlockType, NumberType > &v, bool nibbleMarker=false, bool hexPrefix=true)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::to_triple (const integer< nbits, BlockType, NumberType > &number)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::info_print (const integer< nbits, BlockType, NumberType > &number, int printPrecision=17)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::pretty_print (const integer< nbits, BlockType, NumberType > &number, bool nibbleMarker=false)
template<unsigned nbits, typename BlockType, IntegerNumberType NumberType>
std::string sw::universal::color_print (const integer< nbits, BlockType, NumberType > &number, bool nibbleMarker=false)