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 booleanisInvalidFloat(byte[] buf, int off, int len) static booleanisInvalidInt(byte[] buf, int off, int len) static doubleparseFloat(byte[] buf, int off, int len) static longparseInt(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)
-