userver: decimal64::DefRoundPolicy Class Reference
No Matches
decimal64::DefRoundPolicy Class Referencefinal

#include <userver/decimal64/decimal64.hpp>

Detailed Description

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 322 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)

Member Function Documentation

◆ DivRounded()

static constexpr int64_t decimal64::DefRoundPolicy::DivRounded ( int64_t a,
int64_t b,
bool  )

Definition at line 329 of file decimal64.hpp.

◆ Round()

template<typename T >
static constexpr int64_t decimal64::DefRoundPolicy::Round ( T value)

Definition at line 325 of file decimal64.hpp.

The documentation for this class was generated from the following file: