Fixed output of PQ null values

This commit is contained in:
Klaus Basan
2017-01-26 01:14:58 +01:00
committed by Mathew Sutcliffe
parent 1522c8175e
commit e49f9c2b38
3 changed files with 14 additions and 9 deletions

View File

@@ -58,6 +58,10 @@ namespace BlackSample
l3 = l3 * 2;
out << "doubled l3: " << l3 << endl;
// null test
CLength nullLength(0, CLengthUnit::nullUnit());
out << "Null PQ: " << nullLength << " converted " << nullLength.valueRoundedWithUnit(CLengthUnit::m(), 2) << endl;
// more tests
CFrequency f1(1E6, CFrequencyUnit::Hz()); // 1MHz
out << f1 << " " << f1.valueRoundedWithUnit(CFrequencyUnit::MHz()) << " " << f1.valueRoundedWithUnit(CFrequencyUnit::GHz(), 3);