mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
feat: litre text symbol changed from l
to L
to avoid ambiguity with 1
This commit is contained in:
@@ -289,7 +289,7 @@ std::cout << 6.7 * l_per_100km << "\n";
|
||||
prints:
|
||||
|
||||
```text
|
||||
6.7 l/[100 km]
|
||||
6.7 L/[100 km]
|
||||
```
|
||||
|
||||
|
||||
|
@@ -105,7 +105,7 @@ inline constexpr struct arcminute final : named_unit<symbol_text{u8"′", "'"},
|
||||
inline constexpr struct arcsecond final : named_unit<symbol_text{u8"″", "''"}, mag_ratio<1, 60> * arcminute> {} arcsecond;
|
||||
inline constexpr struct are final : named_unit<"a", square(si::deca<si::metre>)> {} are;
|
||||
inline constexpr auto hectare = si::hecto<are>;
|
||||
inline constexpr struct litre final : named_unit<"l", cubic(si::deci<si::metre>)> {} litre;
|
||||
inline constexpr struct litre final : named_unit<"L", cubic(si::deci<si::metre>)> {} litre;
|
||||
inline constexpr struct tonne final : named_unit<"t", mag<1000> * si::kilogram> {} tonne;
|
||||
inline constexpr struct dalton final : named_unit<"Da", mag_ratio<16'605'390'666'050, 10'000'000'000'000> * mag_power<10, -27> * si::kilogram> {} dalton;
|
||||
// TODO A different value is provided in the SI Brochure and different in the ISO 80000
|
||||
|
@@ -267,7 +267,7 @@ static_assert(unit_symbol(pow<1, 2>(metre)) == "m^(1/2)");
|
||||
static_assert(unit_symbol(pow<3, 5>(metre)) == "m^(3/5)");
|
||||
static_assert(unit_symbol(pow<1, 2>(metre / second)) == "m^(1/2)/s^(1/2)");
|
||||
static_assert(unit_symbol<usf{.solidus = never}>(pow<1, 2>(metre / second)) == "m^(1/2) s^-(1/2)");
|
||||
static_assert(unit_symbol(litre / (mag<100> * kilo<metre>)) == "l/[100 km]");
|
||||
static_assert(unit_symbol(litre / (mag<100> * kilo<metre>)) == "L/[100 km]");
|
||||
static_assert(unit_symbol((mag<10> * metre) / (mag<20> * second)) == "[10 m]/[20 s]");
|
||||
static_assert(unit_symbol(pow<2>(mag<3600> * second)) == "[3600 s]²");
|
||||
|
||||
|
Reference in New Issue
Block a user