uses IdGlobal 
十进制转换成BCD码函数 
function TForm1.inttobcd(x: Integer): string
var 
  s,s1:string
  i,j,x1:Integer
begin 
  s:=IntToStr(x); 
  i:=Length(s); 
  result:=''
  for j:=1 to do 
  begin 
    x1:=StrToInt(s[j]); 
    s1:=inttobin(x1); 
    s1:=Copy(s1,Length(s1)-3,4); 
    result:=result+s1; 
  end
end

相关文章:

  • 2022-02-10
  • 2021-09-24
  • 2021-10-17
  • 2021-07-25
  • 2021-12-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案