Skip to content

Commit

Permalink
fix: Fahrenheit conversion ratio was inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Oct 18, 2023
1 parent 8e48906 commit d3ad78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/usc/include/mp-units/systems/usc/usc.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ inline constexpr struct troy_pound : named_unit<"lb t", mag<12> * troy_once> {}
inline constexpr struct inch_of_mercury : named_unit<"inHg", mag<ratio(3'386'389, 1'000)> * si::pascal> {} inch_of_mercury;

// https://en.wikipedia.org/wiki/United_States_customary_units#Temperature
inline constexpr struct degree_Fahrenheit : named_unit<basic_symbol_text{"°F", "`F"}, mag<ratio{9, 5}> * si::degree_Celsius> {} degree_Fahrenheit;
inline constexpr struct degree_Fahrenheit : named_unit<basic_symbol_text{"°F", "`F"}, mag<ratio{5, 9}> * si::degree_Celsius> {} degree_Fahrenheit;
// clang-format on

namespace unit_symbols {
Expand Down

0 comments on commit d3ad78a

Please sign in to comment.