docs: pi definition fixed
This commit is contained in:
1 parent
8ca8270d2f
commit
1aac89f412
1 file changed
+1
-1
@@ -196,7 +196,7 @@ For some units, a magnitude might also be irrational. The best example here is a
|
||||
is defined using a floating-point magnitude having a factor of the number π (Pi):
|
||||
|
||||
```cpp
|
||||
inline constexpr struct pi final : mag_constant<symbol_text{u8"π", "pi"}, std::numbers::pi_v<long double>> {
|
||||
inline constexpr struct pi final : mag_constant<symbol_text{u8"π", "pi"}, std::numbers::pi_v<long double>> {} pi;
|
||||
inline constexpr auto π = pi;
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user