Class FloatUtils

java.lang.Object
com.mchange.lang.FloatUtils

public final class FloatUtils extends Object
  • Constructor Details

    • FloatUtils

      public FloatUtils()
  • Method Details

    • byteArrayFromFloat

      public static byte[] byteArrayFromFloat(float f)
    • floatFromByteArray

      public static float floatFromByteArray(byte[] b, int offset)
    • parseFloat

      public static float parseFloat(String fStr, float dflt)
    • parseFloat

      public static float parseFloat(String fStr) throws NumberFormatException
      useful in Java1.1 environments, where Float.parseFloat is not defined...
      Throws:
      NumberFormatException
    • floatToString

      public static String floatToString(float f, int precision)