forked from mpusz/mp-units
feat: ppm parts per million
Co-authored-by: Mateusz Pusz <mateusz.pusz@gmail.com>
This commit is contained in:
committed by
Nebojsa Cvetkovic
co-authored by
Mateusz Pusz
parent
1df2cc7b58
commit
a62f061028
@@ -605,6 +605,8 @@ template<std::intmax_t Num, std::intmax_t Den = 1, Unit U>
|
||||
// clang-format off
|
||||
inline constexpr struct percent : named_unit<"%", mag<ratio{1, 100}> * one> {} percent;
|
||||
inline constexpr struct per_mille : named_unit<basic_symbol_text{"‰", "%o"}, mag<ratio(1, 1000)> * one> {} per_mille;
|
||||
inline constexpr struct parts_per_million : named_unit<"ppm", mag<ratio(1, 1'000'000)> * one> {} parts_per_million;
|
||||
inline constexpr auto ppm = parts_per_million;
|
||||
// clang-format on
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user