Class FloatHelper

java.lang.Object
org.drools.util.FloatHelper

public class FloatHelper extends Object
Utility class for handling float to double conversions with precision cleanup.
  • 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