Package com.mchange.lang
Class FloatUtils
java.lang.Object
com.mchange.lang.FloatUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
byteArrayFromFloat
(float f) static float
floatFromByteArray
(byte[] b, int offset) static String
floatToString
(float f, int precision) static float
parseFloat
(String fStr) useful in Java1.1 environments, where Float.parseFloat is not defined...static float
parseFloat
(String fStr, float dflt)
-
Constructor Details
-
FloatUtils
public FloatUtils()
-
-
Method Details
-
byteArrayFromFloat
public static byte[] byteArrayFromFloat(float f) -
floatFromByteArray
public static float floatFromByteArray(byte[] b, int offset) -
parseFloat
-
parseFloat
useful in Java1.1 environments, where Float.parseFloat is not defined...- Throws:
NumberFormatException
-
floatToString
-