25#include "types/rounding.hpp"
37 std::string
roundDown(
const std::string& _number);
45 std::string
roundUp(
const std::string& _number);
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, Rounding mode)
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:140
Rounding
Definition rounding.hpp:52
@ ROUND_OFF
Rounds the number off.
Definition rounding.hpp:55