-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add micro, nano prefix to Energy unit Joule (#1316)
Hello, For the correct display of the values of our laser energy meters we are currently missing the prefixes micro and nano for the unit joule. It would be nice if this could be added. Many thanks
- Loading branch information
Showing
11 changed files
with
212 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
UnitsNet.NanoFramework/GeneratedCode/Quantities/Energy.g.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToEnergyExtensionsTest.g.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
UnitsNet.NumberExtensions/GeneratedCode/NumberToEnergyExtensions.g.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Licensed under MIT No Attribution, see LICENSE file at the root. | ||
// Licensed under MIT No Attribution, see LICENSE file at the root. | ||
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet. | ||
|
||
using System; | ||
|
@@ -42,6 +42,10 @@ public class EnergyTests : EnergyTestsBase | |
|
||
protected override double MillijoulesInOneJoule => 1000; | ||
|
||
protected override double MicrojoulesInOneJoule => 1E6; | ||
|
||
protected override double NanojoulesInOneJoule => 1E9; | ||
|
||
protected override double TerawattHoursInOneJoule => 2.77777778e-16; | ||
|
||
protected override double TerawattDaysInOneJoule => 1.157407407407410E-17; | ||
|
Oops, something went wrong.