A convenient Magnitude constant for pi, which we can manipulate like a regular number.
Declared in <mp-units/framework/unit_magnitude.h>
struct pi_c final
: mag_constant<symbol_text<3UL - 1, 3UL - 1>{u8"\317\200", "pi"}, std::numbers::pi_v<long double>>
| Name | Description |
|---|---|
mag_constant<symbol_text<3UL - 1, 3UL - 1>{u8"\317\200", "pi"}, std::numbers::pi_v<long double>> | A named Magnitude constant identified by its symbol and, where supported, its value |
| Name | Description |
|---|---|
_symbol_ | The constant's textual symbol |
_value_ | The constant's numeric value |