feat: 𝜋 added as an alias for pi

This commit is contained in:
Mateusz Pusz
2024-10-14 22:49:58 +02:00
parent f5649205cf
commit 6591a65d06
10 changed files with 55 additions and 53 deletions
+2 -2
View File
@@ -42,11 +42,11 @@ using namespace mp_units;
using namespace mp_units::angular;
using namespace mp_units::angular::unit_symbols;
inline constexpr struct half_revolution final : named_unit<"hrev", mag<pi> * radian> {
inline constexpr struct half_revolution final : named_unit<"hrev", mag<𝜋> * radian> {
} half_revolution;
inline constexpr auto hrev = half_revolution;
// constexpr auto revb6 = mag_ratio<1,3> * mag<pi> * rad;
// constexpr auto revb6 = mag_ratio<1,3> * mag<𝜋> * rad;
TEST_CASE("value_cast should not truncate for valid inputs", "[value_cast]")
{