Re: Convert number to binary in Delphi

Posted by Geof

In Reply to Convert ASCii posted by freddyarimbi

: i'm having problem using delphi to convert ascii code into binary code. ex: A = 65(Dec), 1000001(binary)
: is there any function in Delphi that can convert from dec into binary code? please help

Delphi has the built-in functions IntToStr (returns a string that is the decimal representation of a number) and IntToHex (returns a string that is the hexadecimal representation of a number). But alas, Delphi has no "IntToBinary" function.

You'll have to write the function yourself ;)
Or otherwise, search the Net for a library that contains such a function. :-p

Follow Ups

Re: Convert number to binary notation Bill DelphiMan