|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Fixed-point numeric formatting views. More...

Go to the source code of this file.
Classes | |
| struct | microfmt::fixed_point_view< Scale, Decimals, IntType > |
| struct | microfmt::formatter< fixed_point_view< Scale, Decimals, IntType > > |
Namespaces | |
| namespace | microfmt |
| namespace | microfmt::detail |
Typedefs | |
| template<typename IntType = int32_t> | |
| using | microfmt::milli_view = fixed_point_view< 1000, 3, IntType > |
| template<typename IntType = int32_t> | |
| using | microfmt::centi_view = fixed_point_view< 100, 2, IntType > |
| template<typename IntType = int32_t> | |
| using | microfmt::micro_view = fixed_point_view< 1000000, 6, IntType > |
Functions | |
| constexpr uint64_t | microfmt::detail::ct_pow10 (uint8_t exp) noexcept |
| template<uint64_t Scale, uint8_t Decimals = 2, typename IntType > | |
| constexpr auto | microfmt::fixed (IntType raw_val) noexcept |
| template<typename IntType > | |
| constexpr auto | microfmt::milli (IntType raw_val) noexcept |
| template<typename IntType > | |
| constexpr auto | microfmt::centi (IntType raw_val) noexcept |
| template<typename IntType > | |
| constexpr auto | microfmt::micro (IntType raw_val) noexcept |
Fixed-point numeric formatting views.