Skip to content

Commit 0cba003

Browse files
committed
ticket:4031
Added kV & mV derived units.
1 parent 9e417e1 commit 0cba003

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Compiler/runtime/unitparser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,9 @@ void UnitParser::initSIUnits() {
11271127
addDerived("power, radiant flux", "milliwatt", "mW", "J/s", Rational(0), Rational(1, 1000), Rational(0), true);
11281128
addDerived("power, radiant flux", "megawatt", "MW", "J/s", Rational(0), Rational(1000000), Rational(0), true);
11291129

1130+
addDerived("electric potential difference, electromotive force", "kilovolt", "kV", "W/A", Rational(0), Rational(1000), Rational(0), true);
1131+
addDerived("electric potential difference, electromotive force", "millivolt", "mV", "W/A", Rational(0), Rational(1, 1000), Rational(0), true);
1132+
11301133
addDerived("pressure", "bar", "bar", "Pa", Rational(0), Rational(100000), Rational(0), true);
11311134

11321135
addDerived("time", "millisecond", "ms", "s", Rational(0), Rational(1, 1000), Rational(0), true);

0 commit comments

Comments
 (0)