Java Integer to Byte int2bcdByte(int hRadix10, int lRadix10)

Here you can find the source of int2bcdByte(int hRadix10, int lRadix10)

Description

intbcd Byte

License

Apache License

Declaration

private static byte int2bcdByte(int hRadix10, int lRadix10) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    private static byte int2bcdByte(int hRadix10, int lRadix10) {
        int bcd = ((hRadix10 & 0x0F) << 4) + (lRadix10 & 0x0F);
        return (byte) bcd;
    }/*from w  ww . ja v  a 2 s .c  o m*/
}

Related

  1. asByte(int a)
  2. int2bin(byte[] out, int offset, int i)
  3. int2byte(byte[] output, int[] input, int len)
  4. int2byte(final int i)
  5. int2byte(int i)