You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A base unit is chosen for all classes of units, which is represented by a double value (64-bit), and all conversions go via this unit.
104
+
This means there will always be a small error in both representing other units than the base unit as well as converting between units.
105
+
106
+
In the unit tests I accept an error less than 1E-5 for all units I've added so far. In many usecases this is sufficient, but for some usecases this is definitely not OK and something you need to be aware of.
107
+
For more details, see [Precision](https://github.com/InitialForce/UnitsNet/wiki/Precision).
108
+
109
+
101
110
What It Is Not
102
111
==============
103
112
104
113
* It is not an equation solver.
105
114
* It does not figure out the units after a calculation.
106
115
116
+
Frequently Asked Questions
117
+
==========================
118
+
Q: Why is the conversion not perfectly accurate?
119
+
As an example, when converting 1 PoundForce (lbF) to KilogramForce (kgF) I expected the result to be 0.45359237 and instead I got0.45359240790780886 using the following for the conversion:
* For several unit conversions there is no one perfect answer. Some units depend on constants such as the standard gravity, where different precisions are used in different contexts. Other constants depend on the environment, such as the temperature or altitude.
127
+
* By design, Units.NET was not intended for high-accuracy conversions but rather convenience and simplicity. I am open to suggestions for improvements. If you want to know more, see the [Precision](https://github.com/InitialForce/UnitsNet/wiki/Precision) article.
128
+
129
+
107
130
Work In Progress
108
131
================
109
132
This project is still early and many units and conversions are not yet covered. If you are missing something, please help by contributing.
0 commit comments