Skip to content

Commit 34507eb

Browse files
Add prefixes to multiple units (#1204)
Hi, it's me again. Here are some units that we're missing in our current project. **ApparentPower:** - Micro - Milli **ElectricCharge:** - Pico - Nano - Micro - Milli - Kilo - Mega **ElectricConductance:** - Nano - Kilo **ElectricInductance:** - Pico **ElectricPotential:** - Nano **ElectricResistance:** - Tera
1 parent 351a3d8 commit 34507eb

File tree

58 files changed

+1124
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1124
-51
lines changed

Common/UnitDefinitions/ApparentPower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"PluralName": "Voltamperes",
1414
"FromUnitToBaseFunc": "{x}",
1515
"FromBaseToUnitFunc": "{x}",
16-
"Prefixes": [ "Kilo", "Mega", "Giga" ],
16+
"Prefixes": [ "Micro", "Milli", "Kilo", "Mega", "Giga" ],
1717
"Localization": [
1818
{
1919
"Culture": "en-US",

Common/UnitDefinitions/ElectricCharge.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"PluralName": "Coulombs",
1414
"FromUnitToBaseFunc": "{x}",
1515
"FromBaseToUnitFunc": "{x}",
16+
"Prefixes": [ "Pico", "Nano", "Micro", "Milli", "Kilo", "Mega" ],
1617
"Localization": [
1718
{
1819
"Culture": "en-US",

Common/UnitDefinitions/ElectricConductance.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"PluralName": "Siemens",
1616
"FromUnitToBaseFunc": "{x}",
1717
"FromBaseToUnitFunc": "{x}",
18-
"Prefixes": [ "Milli", "Micro" ],
18+
"Prefixes": [ "Nano", "Micro", "Milli", "Kilo" ],
1919
"Localization": [
2020
{
2121
"Culture": "en-US",

Common/UnitDefinitions/ElectricInductance.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"PluralName": "Henries",
1616
"FromUnitToBaseFunc": "{x}",
1717
"FromBaseToUnitFunc": "{x}",
18-
"Prefixes": [ "Nano", "Micro", "Milli" ],
18+
"Prefixes": [ "Pico", "Nano", "Micro", "Milli" ],
1919
"Localization": [
2020
{
2121
"Culture": "en-US",

Common/UnitDefinitions/ElectricPotential.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"FromUnitToBaseFunc": "{x}",
2222
"FromBaseToUnitFunc": "{x}",
23-
"Prefixes": [ "Micro", "Milli", "Kilo", "Mega" ],
23+
"Prefixes": [ "Nano", "Micro", "Milli", "Kilo", "Mega" ],
2424
"Localization": [
2525
{
2626
"Culture": "en-US",

Common/UnitDefinitions/ElectricResistance.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"PluralName": "Ohms",
1515
"FromUnitToBaseFunc": "{x}",
1616
"FromBaseToUnitFunc": "{x}",
17-
"Prefixes": [ "Micro", "Milli", "Kilo", "Mega", "Giga"],
17+
"Prefixes": [ "Micro", "Milli", "Kilo", "Mega", "Giga", "Tera" ],
1818
"Localization": [
1919
{
2020
"Culture": "en-US",

Common/UnitEnumValues.g.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@
7474
"Gigavoltampere": 1,
7575
"Kilovoltampere": 2,
7676
"Megavoltampere": 3,
77-
"Voltampere": 4
77+
"Voltampere": 4,
78+
"Microvoltampere": 6,
79+
"Millivoltampere": 7
7880
},
7981
"Area": {
8082
"Acre": 1,
@@ -250,15 +252,23 @@
250252
"Coulomb": 2,
251253
"KiloampereHour": 3,
252254
"MegaampereHour": 4,
253-
"MilliampereHour": 5
255+
"MilliampereHour": 5,
256+
"Kilocoulomb": 13,
257+
"Megacoulomb": 6,
258+
"Microcoulomb": 11,
259+
"Millicoulomb": 7,
260+
"Nanocoulomb": 9,
261+
"Picocoulomb": 8
254262
},
255263
"ElectricChargeDensity": {
256264
"CoulombPerCubicMeter": 1
257265
},
258266
"ElectricConductance": {
259267
"Microsiemens": 1,
260268
"Millisiemens": 2,
261-
"Siemens": 3
269+
"Siemens": 3,
270+
"Kilosiemens": 6,
271+
"Nanosiemens": 10
262272
},
263273
"ElectricConductivity": {
264274
"SiemensPerFoot": 1,
@@ -297,14 +307,16 @@
297307
"Henry": 1,
298308
"Microhenry": 2,
299309
"Millihenry": 3,
300-
"Nanohenry": 4
310+
"Nanohenry": 4,
311+
"Picohenry": 14
301312
},
302313
"ElectricPotential": {
303314
"Kilovolt": 1,
304315
"Megavolt": 2,
305316
"Microvolt": 3,
306317
"Millivolt": 4,
307-
"Volt": 5
318+
"Volt": 5,
319+
"Nanovolt": 11
308320
},
309321
"ElectricPotentialAc": {
310322
"KilovoltAc": 1,
@@ -348,7 +360,8 @@
348360
"Megaohm": 3,
349361
"Microohm": 4,
350362
"Milliohm": 5,
351-
"Ohm": 6
363+
"Ohm": 6,
364+
"Teraohm": 12
352365
},
353366
"ElectricResistivity": {
354367
"KiloohmCentimeter": 1,

UnitsNet.NanoFramework/GeneratedCode/Quantities/ApparentPower.g.cs

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCharge.g.cs

Lines changed: 78 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductance.g.cs

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)