Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
math.hpp File Reference
#include <cassert>
#include <cstdint>
#include <common/types.hpp>
Include dependency graph for math.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  slick
namespace  slick::sim
namespace  slick::sim::utils
 Conversions between wire decimals with a constant exponent of -9 (CME PRICE9, ICE Decimal9) and the simulator's 1e-8 fixed point.

Functions

uint64_t slick::sim::utils::mul_div_floor (uint64_t a, uint64_t b, uint64_t c) noexcept
 floor(a * b / c), with the product held at 128 bits.