TIntegerSysHelper.ToBinString function
Integer type helper method for customizable binary string representation.
Declaration
function ToBinString(const aBinFormatSettings: TBinFormatSettings;
const aShowLeadingZeros: Boolean;
const aMinDigits: Integer): string; overload
function ToBinString(const aBinFormatSettings: TBinFormatSettings;
const aMinDigits: Integer): string; overload
function ToBinString(const aBinFormatSettings: TBinFormatSettings;
aShowLeadingZeros: Boolean=True): string; overload
function ToBinString(const aMinDigits: Integer): string; overload
function ToBinString(const aShowLeadingZeros: Boolean=True): string
; overloadArguments
aBinFormatSettings | Record containing custom strings needed for conversion to binary string. |
aShowLeadingZeros | Should leading zeros be shown or not in output string. |
aMinDigits | Minimal number of binary digits to show in output string. |
Function result
Binary output string.
Description
Convert Integer type value to binary string using localized custom formatting. TBooleanSysHelper.ToOneZeroString method is used for conversion of individual bits.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
