Skip to content

Commit 4a646dc

Browse files
yzharyiUNIVERSE\yzharyi
andauthored
Add picomoles and femtomoles (#1291)
Closes #1288 Co-authored-by: UNIVERSE\yzharyi <[email protected]>
1 parent 0c79e14 commit 4a646dc

File tree

11 files changed

+209
-35
lines changed

11 files changed

+209
-35
lines changed

Common/UnitDefinitions/AmountOfSubstance.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"BaseUnits": {
1515
"N": "Mole"
1616
},
17-
"Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega"],
17+
"Prefixes": [ "Femto", "Pico", "Nano", "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega"],
1818
"Localization": [
1919
{
2020
"Culture": "en-US",

Common/UnitEnumValues.g.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"Mole": 12,
4040
"Nanomole": 13,
4141
"NanopoundMole": 14,
42-
"PoundMole": 15
42+
"PoundMole": 15,
43+
"Femtomole": 19,
44+
"Picomole": 18
4345
},
4446
"AmplitudeRatio": {
4547
"DecibelMicrovolt": 1,

UnitsNet.NanoFramework/GeneratedCode/Quantities/AmountOfSubstance.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/Units/AmountOfSubstanceUnit.g.cs

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

UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToAmountOfSubstanceExtensionsTest.g.cs

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

UnitsNet.NumberExtensions/GeneratedCode/NumberToAmountOfSubstanceExtensions.g.cs

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

UnitsNet.Tests/CustomCode/AmountOfSubstanceTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public class AmountOfSubstanceTests : AmountOfSubstanceTestsBase
4545
protected override double NanopoundMolesInOneMole => 0.002204622621848776 * 1e9;
4646
protected override double PoundMolesInOneMole => 0.002204622621848776;
4747
protected override double MegamolesInOneMole => 1e-6;
48+
protected override double PicomolesInOneMole => 1e12;
49+
protected override double FemtomolesInOneMole => 1e15;
4850

4951
[Fact]
5052
public void NumberOfParticlesInOneMoleEqualsAvogadroConstant()

0 commit comments

Comments
 (0)