Skip to content

Commit a0e22a9

Browse files
Maradaehneangularsen
authored andcommitted
Added Millijoules per square centimeter [mJ/cm²] in Irridiation (#650)
1 parent 321513a commit a0e22a9

File tree

8 files changed

+41
-0
lines changed

8 files changed

+41
-0
lines changed

Common/UnitDefinitions/Irradiation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"PluralName": "JoulesPerSquareCentimeter",
2727
"FromUnitToBaseFunc": "x*1e4",
2828
"FromBaseToUnitFunc": "x/1e4",
29+
"Prefixes": [ "Milli" ],
2930
"Localization": [
3031
{
3132
"Culture": "en-US",

UnitsNet.Tests/CustomCode/IrradiationTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public class IrradiationTests : IrradiationTestsBase
3535

3636
protected override double JoulesPerSquareMillimeterInOneJoulePerSquareMeter => 1E-6;
3737

38+
protected override double MillijoulesPerSquareCentimeterInOneJoulePerSquareMeter => 1e-1;
39+
3840
protected override double WattHoursPerSquareMeterInOneJoulePerSquareMeter => 2.777777777777778e-4;
3941

4042
protected override double KilowattHoursPerSquareMeterInOneJoulePerSquareMeter => 2.777777777777778e-7;

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/Irradiation.WindowsRuntimeComponent.g.cs

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

UnitsNet.WindowsRuntimeComponent/GeneratedCode/UnitAbbreviationsCache.g.cs

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

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Units/IrradiationUnit.g.cs

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

UnitsNet/GeneratedCode/Quantities/Irradiation.NetFramework.g.cs

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

UnitsNet/GeneratedCode/UnitAbbreviationsCache.g.cs

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

UnitsNet/GeneratedCode/Units/IrradiationUnit.g.cs

Lines changed: 1 addition & 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)