Package com.automation_pros.odva.util
Class BCD
- java.lang.Object
-
- com.automation_pros.odva.util.BCD
-
public class BCD extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intfromByte(byte bcd)static intfromInt(int bcd)static longfromLong(long bcd)static intfromShort(short bcd)static bytetoByte(int dec)static inttoInt(int dec)static longtoLong(long dec)static shorttoShort(int dec)
-
-
-
Method Detail
-
toByte
public static byte toByte(int dec)
-
toShort
public static short toShort(int dec)
-
toInt
public static int toInt(int dec)
-
toLong
public static long toLong(long dec)
-
fromByte
public static int fromByte(byte bcd)
-
fromShort
public static int fromShort(short bcd)
-
fromInt
public static int fromInt(int bcd)
-
fromLong
public static long fromLong(long bcd)
-
-