38 static MassUnit grams(uint8_t prec = 1,
bool suffixes =
true) {
return MassUnit{gram, prec,
true, suffixes}; }
40 static MassUnit kilograms(uint8_t prec = 4,
bool suffixes =
true) {
return MassUnit{kilogram, prec,
true, suffixes}; }
42 static MassUnit pounds(uint8_t prec = 4,
bool suffixes =
true) {
return MassUnit{pound, prec,
true, suffixes}; }
83 constexpr static int massCount =
static_cast<int>(ton) + 1;
85 static std::array<const char*, massCount> tags;
86 static std::array<const char*, massCount> abbreviations;
87 static std::array<double, massCount> conversions;
88 static std::array<bool, massCount> metric;