#include <iomanip>
#include <iostream>
#include <limits>
#include <numbers>
template<fxd::fixed_point Fxd>
void
print(const char* name,
Fxd val)
{
std::cout << std::setw(10)
<< name
<< " = "
<< val << '\n';
}
template<fxd::fixed_point Fxd>
void
report_all()
{
std::cout << "std::numbers::\n";
std::cout.precision(std::numeric_limits<Fxd>::digits10);
}
int main()
{
report_all<fxd::fixed<8, 24>>();
}
Includes all of libfxd headers.
const Fxd inv_sqrt3_v< Fxd >
Fixed-point constant for .
const Fxd log2e_v< Fxd >
Fixed-point constant for .
const Fxd phi_v< Fxd >
Fixed-point constant for .
const Fxd e_v< Fxd >
Fixed-point constant for .
const Fxd log10e_v< Fxd >
Fixed-point constant for .
const Fxd sqrt3_v< Fxd >
Fixed-point constant for .
const Fxd sqrt2_v< Fxd >
Fixed-point constant for .
const Fxd ln10_v< Fxd >
Fixed-point constant for .
const Fxd pi_v< Fxd >
Fixed-point constant for .
const Fxd ln2_v< Fxd >
Fixed-point constant for .
const Fxd egamma_v< Fxd >
Fixed-point constant for .
const Fxd inv_pi_v< Fxd >
Fixed-point constant for .
const Fxd inv_sqrtpi_v< Fxd >
Fixed-point constant for .