Skip to content

Commit 5c2ca8b

Browse files
committed
replace pre-computed decimals with exact constituent constants
see discussion in pr (#1648 (review))
1 parent 75e364a commit 5c2ca8b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Common/UnitDefinitions/Pressure.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@
421421
{
422422
"SingularName": "MilligramForcePerSquareFoot",
423423
"PluralName": "MilligramsForcePerSquareFoot",
424-
"FromUnitToBaseFunc": "{x} * 1.0555790208802639466e-4",
425-
"FromBaseToUnitFunc": "{x} / 1.0555790208802639466e-4",
424+
"FromUnitToBaseFunc": "{x} * 9.80665e-6 / 9.290304e-2",
425+
"FromBaseToUnitFunc": "{x} / 9.80665e-6 * 9.290304e-2",
426426
"Localization": [
427427
{
428428
"Culture": "en-US",

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

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

UnitsNet/GeneratedCode/Quantities/Pressure.g.cs

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

0 commit comments

Comments
 (0)