| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Convert integer to string with binary representation.
Source position: systemh.inc line 1105
| function binStr( | 
| Val: LongInt; | 
| cnt: Byte | 
| ):shortstring; | 
| Val: Int64; | 
| cnt: Byte | 
| ):shortstring; | 
| Val: QWord; | 
| cnt: Byte | 
| ):shortstring; | 
BinStr returns a string with the binary representation of Value. The string has at most cnt characters. (i.e. only the cnt rightmost bits are taken into account) To have a complete representation of any longint-type value, 32 bits are needed, i.e. cnt=32
None.
| 
 | Convert a numerical or enumeration value to a string. | |
| 
 | Calculate numerical/enumerated value of a string. | |
| 
 | Convert integer value to string with hexadecimal representation. | |
| 
 | Convert integer to a string with octal representation. | 
Program example82; { Program to demonstrate the BinStr function } Const Value = 45678; Var I : longint; begin For I:=8 to 20 do Writeln (BinStr(Value,I):20); end.