function IntToBin(Value: Integer; Count: Integer = 32): string;
var
  iTemp: Integer;
begin
  Result := '';
  while Count > 0 do
  begin
    iTemp := Value shr (Count - 1) and 1;
    case iTemp of
      1:
        Result := Result + '1';
      0:
        Result := Result + '0';
    end;
    Dec(Count);
  end;
end;

相关文章:

  • 2023-02-26
  • 2021-09-16
  • 2022-01-11
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
相关资源
相似解决方案