private static int IntToBCD(int i) //十进制转BCD
        {
            return (((i / 10) << 4) + ((i % 10) & 0x0f));
        }
        private static int BCDToInt(byte bcd) //BCD转十进制
        {
            return (0xff & (bcd >> 4)) * 10 + (0xf & bcd);
        }

相关文章:

  • 2021-09-24
  • 2021-10-17
  • 2021-07-25
  • 2021-12-07
  • 2022-12-23
猜你喜欢
  • 2022-03-04
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
相关资源
相似解决方案