Package com.btobits.util.misc
Class NumberUtil
java.lang.Object
com.btobits.util.misc.NumberUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
formatFloat
(double value) static byte[]
formatInt
(long value) static boolean
isInvalidFloat
(byte[] buf, int off, int len) static boolean
isInvalidInt
(byte[] buf, int off, int len) static double
parseFloat
(byte[] buf, int off, int len) static long
parseInt
(byte[] buf, int off, int len)
-
Method Details
-
isInvalidInt
public static boolean isInvalidInt(byte[] buf, int off, int len) -
parseInt
public static long parseInt(byte[] buf, int off, int len) -
isInvalidFloat
public static boolean isInvalidFloat(byte[] buf, int off, int len) -
parseFloat
public static double parseFloat(byte[] buf, int off, int len) -
formatInt
public static byte[] formatInt(long value) -
formatFloat
public static byte[] formatFloat(double value)
-