mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-06 13:44:27 +02:00
style: formatting updated to make pre-commit happy
This commit is contained in:
@@ -98,7 +98,7 @@ struct ratio {
|
||||
detail::safe_multiply(lhs.den / gcd2, rhs.den / gcd1)};
|
||||
}
|
||||
|
||||
[[nodiscard]] friend consteval ratio operator/(ratio lhs, ratio rhs) { return lhs* ratio{rhs.den, rhs.num}; }
|
||||
[[nodiscard]] friend consteval ratio operator/(ratio lhs, ratio rhs) { return lhs * ratio{rhs.den, rhs.num}; }
|
||||
};
|
||||
|
||||
[[nodiscard]] consteval bool is_integral(ratio r) { return r.num % r.den == 0; }
|
||||
|
@@ -59,7 +59,7 @@ inline constexpr struct angstrom : named_unit<basic_symbol_text{"Å", "A"}, mag_
|
||||
|
||||
// selected constants
|
||||
// https://en.wikipedia.org/wiki/Astronomical_constant
|
||||
inline constexpr struct gaussian_gravitational_constant :
|
||||
inline constexpr struct gaussian_gravitational_constant :
|
||||
named_unit<"k", mag<ratio{1'720'209'895, 100'000'000'000}> * pow<3, 2>(astronomical_unit) / pow<1,2>(solar_mass) / day> {} gaussian_gravitational_constant;
|
||||
|
||||
inline constexpr struct speed_of_light :
|
||||
|
Reference in New Issue
Block a user