Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
decimal.hpp File Reference
#include <string>
#include <universal/utility/exceptions.hpp>
#include <sstream>
#include <cstdio>
#include <cstdint>
#include <iomanip>
#include <regex>
#include <vector>
#include <map>
#include <cassert>

Classes

class  sw::universal::support::decimal

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::support

Functions

void sw::universal::support::add (decimal &lhs, const decimal &rhs)
void sw::universal::support::sub (decimal &lhs, const decimal &rhs)
decimal sw::universal::support::findLargestMultiple (const decimal &lhs, const decimal &rhs)
int sw::universal::support::findMsd (const decimal &v)
bool sw::universal::support::less (const decimal &lhs, const decimal &rhs)
bool sw::universal::support::lessOrEqual (const decimal &lhs, const decimal &rhs)
void sw::universal::support::mul (decimal &lhs, const decimal &rhs)
decimal sw::universal::support::div (const decimal &lhs, const decimal &rhs)
void sw::universal::support::convert_to_decimal (long long v, decimal &d)
std::ostream & sw::universal::support::operator<< (std::ostream &ostr, const decimal &d)