Loading…

Method Name: convert_decimal_to_bcd3

Method ID: 0x406D

Method Label:

Method Help:


  • {
  • unsigned int temporary1;
  • unsigned long hold1;
  • unsigned long temporary2;
  • temporary2 = temporary1 = 0;
  • hold1 = igetval();
  • temporary2 = hold1 / 65536;
  • temporary2 = hold1 >> 16;
  • temporary2 = 10000 * (10 * (temporary2 / 16) + temporary2 % 16);
  • hold1 = hold1 % 65536;
  • temporary1 = hold1 / 256;
  • temporary1 = 100 * (10 * (temporary1 / 16) + temporary1 % 16);
  • hold1 = hold1 % 256;
  • hold1 = 10 * (hold1 / 16) + hold1 % 16;


Please login for more