C#实现BCD码

来源:互联网 发布:0ffice2007办公软件 编辑:程序博客网 时间:2024/05/22 12:34

很简单的..不多少了 本月第1篇

 

 string _BcdText = Zgke.ConvertByte.BCD.GetBcdEncode(123456, Zgke.ConvertByte.BCD.BcdType.码8421);

            ulong _Value;

            if(Zgke.ConvertByte.BCD.GetBcdDecode(_BcdText,Zgke.ConvertByte.BCD.BcdType.码8421,out _Value))
            {
                MessageBox.Show(_Value.ToString(), _BcdText);
            }
         

 

 

全部类

 

原创粉丝点击