#include <userver/decimal64/decimal64.hpp>
Default rounding. Fast, rounds to nearest.
On 0.5, rounds away from zero. Also, sometimes rounds up numbers in the neighborhood of 0.5, e.g. 0.49999999999999994 -> 1.
Definition at line 311 of file decimal64.hpp.
Static Public Member Functions | |
template<typename T > | |
static constexpr int64_t | Round (T value) |
static constexpr int64_t | DivRounded (int64_t a, int64_t b, bool) |
|
inlinestaticconstexpr |
Definition at line 318 of file decimal64.hpp.
|
inlinestaticconstexpr |
Definition at line 314 of file decimal64.hpp.