|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <universal/native/ieee754_decoder.hpp>#include <universal/utility/color_print.hpp>#include <cstdint>#include <sstream>#include <iomanip>#include <string>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Functions | |
| std::string | sw::universal::to_hex (float number, bool nibbleMarker=false, bool hexPrefix=true) |
| std::string | sw::universal::to_binary (float number, bool bNibbleMarker=false) |
| std::string | sw::universal::to_triple (float number, bool nibbleMarker=false) |
| std::string | sw::universal::to_base2_scientific (float number) |
| std::string | sw::universal::color_print (float number) |