34 std::string
roundDown(
const std::string& _number);
42 std::string
roundUp(
const std::string& _number);
51 std::string
roundOff(
const std::string& _number,
size_t digits = 0);
Utilities to operate numbers.
Definition factors.cpp:35
std::string roundDown(const std::string &_number)
Round down a number to the nearest integer.
Definition rounding.cpp:32
std::string roundOff(const std::string &_number, const size_t digits)
Round off a number to the nearest integer.
Definition rounding.cpp:60
std::string roundUp(const std::string &_number)
Round up a number to the nearest integer.
Definition rounding.cpp:44
std::string moveDecimalPlaces(const std::string &_number, const long places)
Move the decimal places of a number.
Definition rounding.cpp:120