xo-unit: + gigatonne unit
This commit is contained in:
parent
e6ccd09ad7
commit
a3c6ef6d33
3 changed files with 4 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ namespace xo {
|
|||
constexpr basis_unit tonne = basis_unit(dim::mass, scalefactor_ratio_type( 1000000, 1));
|
||||
constexpr basis_unit kilotonne = basis_unit(dim::mass, scalefactor_ratio_type( 1000000000, 1));
|
||||
constexpr basis_unit megatonne = basis_unit(dim::mass, scalefactor_ratio_type(1000000000000, 1));
|
||||
constexpr basis_unit gigatonne = basis_unit(dim::mass, scalefactor_ratio_type(1000000000000000, 1));
|
||||
|
||||
// ----- distance -----
|
||||
|
||||
|
|
|
|||
|
|
@ -60,6 +60,8 @@ namespace xo {
|
|||
return basis_unit2_abbrev_type::from_chars("kt");
|
||||
case 1000000000000:
|
||||
return basis_unit2_abbrev_type::from_chars("Mt");
|
||||
case 1000000000000000:
|
||||
return basis_unit2_abbrev_type::from_chars("Gt");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -368,6 +368,7 @@ namespace xo {
|
|||
constexpr auto tonne = natural_unit<std::int64_t>::from_bu(bu::tonne);
|
||||
constexpr auto kilotonne = natural_unit<std::int64_t>::from_bu(bu::kilotonne);
|
||||
constexpr auto megatonne = natural_unit<std::int64_t>::from_bu(bu::megatonne);
|
||||
constexpr auto gigatonne = natural_unit<std::int64_t>::from_bu(bu::gigatonne);
|
||||
|
||||
constexpr auto picometer = natural_unit<std::int64_t>::from_bu(bu::picometer);
|
||||
constexpr auto nanometer = natural_unit<std::int64_t>::from_bu(bu::nanometer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue