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, DecimalEncoding Encoding, typename bt>
dfloat< ndigits, es, Encoding, bt > sw::universal::trunc (dfloat< ndigits, es, Encoding, bt > x)
template<unsigned ndigits, unsigned es, DecimalEncoding Encoding, typename bt>
dfloat< ndigits, es, Encoding, bt > sw::universal::round (dfloat< ndigits, es, Encoding, bt > x)
template<unsigned ndigits, unsigned es, DecimalEncoding Encoding, typename bt>
dfloat< ndigits, es, Encoding, bt > sw::universal::floor (dfloat< ndigits, es, Encoding, bt > x)
template<unsigned ndigits, unsigned es, DecimalEncoding Encoding, typename bt>
dfloat< ndigits, es, Encoding, bt > sw::universal::ceil (dfloat< ndigits, es, Encoding, bt > x)