Skip to content

Commit 743ccc0

Browse files
committed
Improved constants for Poundal force unit and fixed two tests after the precision increased.
1 parent 4583235 commit 743ccc0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Src/UnitsNet/Force.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public double PoundForce
6868

6969
public double Poundal
7070
{
71-
get { return 7.2330*Newtons; }
71+
get { return 7.23301 * Newtons; }
7272
}
7373

7474
#region Static
@@ -85,7 +85,7 @@ public static Force FromDyne(double dyn)
8585

8686
public static Force FromPoundal(double pdl)
8787
{
88-
return new Force(0.138255*pdl);
88+
return new Force(0.13825502798973041652092282466083*pdl);
8989
}
9090

9191
public static Force FromPoundForce(double lbf)

Tests/ForceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public void NewtonToForceUnits()
1818
Assert.AreEqual(0.10197, newton.KilogramForce, Delta);
1919
Assert.AreEqual(0.10197, newton.KiloPonds, Delta);
2020
Assert.AreEqual(0.22481, newton.PoundForce, Delta);
21-
Assert.AreEqual(7.2330, newton.Poundal, Delta);
21+
Assert.AreEqual(7.23301, newton.Poundal, Delta);
2222
}
2323

2424
[Test]

Tests/UnitConverterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void NewtonToForceUnits()
8585
Assert.AreEqual(0.10197, UnitConverter.Convert(1, Unit.Newton, Unit.KilogramForce), Delta);
8686
Assert.AreEqual(0.10197, UnitConverter.Convert(1, Unit.Newton, Unit.KiloPond), Delta);
8787
Assert.AreEqual(0.22481, UnitConverter.Convert(1, Unit.Newton, Unit.PoundForce), Delta);
88-
Assert.AreEqual(7.2330, UnitConverter.Convert(1, Unit.Newton, Unit.Poundal), Delta);
88+
Assert.AreEqual(7.23301, UnitConverter.Convert(1, Unit.Newton, Unit.Poundal), Delta);
8989
}
9090

9191
[Test]

0 commit comments

Comments
 (0)