|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <string>#include <sstream>#include <iomanip>#include <type_traits>#include <universal/number/rational/core.hpp>#include <cmath>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Functions | |
| template<typename RationalType, std::enable_if_t< is_rational< RationalType >, bool > = true> | |
| bool | sw::universal::sign (const RationalType &v) |
| template<typename RationalType, std::enable_if_t< is_rational< RationalType >, bool > = true> | |
| int | sw::universal::scale (const RationalType &r) |
| template<typename RationalType, std::enable_if_t< is_rational< RationalType >, bool > = true> | |
| std::string | sw::universal::rational_range (const RationalType &v) |