mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
disambiguate metric tonne (1,000kg) and US ton (2,000lb)
This commit is contained in:
@@ -78,7 +78,7 @@ int CSamplesPhysicalQuantities::samples()
|
||||
a4.switchUnit(CAngleUnit::deg());
|
||||
qDebug() << a3 << a4;
|
||||
|
||||
CMass w1(1, CMassUnit::t());
|
||||
CMass w1(1, CMassUnit::tonne());
|
||||
CMass w2(w1);
|
||||
w2.switchUnit(CMassUnit::lb());
|
||||
qDebug() << w1 << w1.valueRoundedWithUnit(CMassUnit::kg()) << w2;
|
||||
|
||||
Reference in New Issue
Block a user