Lossless fixed-point decimal received from or sent to Kalshi.
More...
#include <kalshi/fixed_point.hpp>
|
| const std::string & | wire () const noexcept |
| |
| Result< std::int64_t > | scaled_integer (std::uint8_t scale) const |
| | Convert exactly to an integer with scale decimal places.
|
| |
Lossless fixed-point decimal received from or sent to Kalshi.
◆ parse()
◆ wire()
| const std::string & kalshi::FixedPoint::wire |
( |
| ) |
const |
|
inlinenoexcept |
◆ scaled_integer()
| Result< std::int64_t > kalshi::FixedPoint::scaled_integer |
( |
std::uint8_t |
scale | ) |
const |
|
inline |
Convert exactly to an integer with scale decimal places.
Returns InvalidRequest instead of rounding or saturating.
The documentation for this class was generated from the following file: