Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
truncate.hpp File Reference

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned ndigits, unsigned es, typename bt>
hfloat< ndigits, es, bt > sw::universal::trunc (hfloat< ndigits, es, bt > x)
template<unsigned ndigits, unsigned es, typename bt>
hfloat< ndigits, es, bt > sw::universal::round (hfloat< ndigits, es, bt > x)
template<unsigned ndigits, unsigned es, typename bt>
hfloat< ndigits, es, bt > sw::universal::floor (hfloat< ndigits, es, bt > x)
template<unsigned ndigits, unsigned es, typename bt>
hfloat< ndigits, es, bt > sw::universal::ceil (hfloat< ndigits, es, bt > x)