public FrequencyBcd(uint bcd32Value) { _bcd32Value = bcd32Value; var freqOutUint = Bcd.Bcd2Dec(_bcd32Value); _value = (double)freqOutUint / 10000; }
public FrequencyBcd(ushort bcd16Value) { _bcd16Value = bcd16Value; var freqOutUint = Bcd.Bcd2Dec(_bcd16Value); var tmp = freqOutUint + 10000; _value = (double)tmp / 100; //_value = Math.Round(_value * 4, MidpointRounding.ToEven) / 4; }