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 <iomanip>
#include <string>
#include <sstream>
#include <cstdint>
#include <limits>
#include <type_traits>
#include <universal/native/manipulators_core.hpp>
#include <universal/native/ieee754_type_tag.hpp>
#include <universal/utility/color_print.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<typename Real, typename = typename std::enable_if< std::is_floating_point<Real>::value, Real >::type>
std::string sw::universal::to_triple (Real number, bool bNibbleMarker=false) noexcept
template<typename Real, typename = typename std::enable_if< std::is_floating_point<Real>::value, Real >::type>
std::string sw::universal::to_base2_scientific (Real number) noexcept
template<typename Real, typename = typename std::enable_if< std::is_floating_point<Real>::value, Real >::type>
std::string sw::universal::to_hex (Real number) noexcept
template<typename RealType, std::enable_if_t< ::std::is_floating_point< RealType >::value, bool > = true>
std::string sw::universal::pretty_print (const RealType f) noexcept
template<typename RealType, std::enable_if_t< ::std::is_floating_point< RealType >::value, bool > = true>
std::string sw::universal::info_print (const RealType f, int printPrecision=17) noexcept
template<typename Real, typename = typename std::enable_if< std::is_floating_point<Real>::value, Real >::type>
std::string sw::universal::components (Real number) noexcept
template<typename Real, typename = typename std::enable_if< std::is_floating_point<Real>::value, Real >::type>
std::string sw::universal::color_print (Real number, bool nibbleMarker=false) noexcept