Package org.drools.util
Class FloatHelper
java.lang.Object
org.drools.util.FloatHelper
Utility class for handling float to double conversions with precision cleanup.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublecleanDouble(double d) Cleans up precision artifacts when converting float to double.
-
Constructor Details
-
FloatHelper
public FloatHelper()
-
-
Method Details
-
cleanDouble
public static double cleanDouble(double d) Cleans up precision artifacts when converting float to double. Rounds to approximately 7 significant digits (float precision).- Parameters:
d- the double value to clean up- Returns:
- the cleaned double value
-