Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -1,16 +1,13 @@
|
|||
function IntToBinStr(AInt : integer) : string;
|
||||
begin
|
||||
Result := '';
|
||||
repeat
|
||||
Result := Chr(Ord('0')+(AInt and 1))+Result;
|
||||
AInt := AInt div 2;
|
||||
until (AInt = 0);
|
||||
end;
|
||||
|
||||
procedure Binary_Digits;
|
||||
|
||||
function IntToBinStr(AInt : integer) : string;
|
||||
|
||||
begin
|
||||
Result := '';
|
||||
while AInt > 0 do
|
||||
begin
|
||||
Result := Chr(Ord('0')+(AInt mod 2))+Result;
|
||||
AInt := AInt div 2;
|
||||
end;
|
||||
end;
|
||||
|
||||
begin
|
||||
writeln(' 5: '+IntToBinStr(5));
|
||||
writeln(' 50: '+IntToBinStr(50));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue