Jump to content
The simFlight Network Forums

HarryL

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by HarryL

  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.