Jump to content
The simFlight Network Forums

HarryL

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About HarryL

  • Rank
    Newbie
  1. Dear Alhashemi another simple way to convert BCD into a Decimal is the following (I did it in c#, but should be similar in VB): 1: write the BCD value into a string with the format option "X4" 2: by string operations add a "1" in front of this string 3: take the value of this string and devide it by 100 private double bcd2dbl(int bcd) { string bcdstr = "1" + (bcd).ToString("X4"); int bcdint = Convert.ToInt32(bcdstr); double freq = (double)bcdint / 100; return freq; } Harald
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.