Sign in Join
FPDoc Onlineexperiment

TIntegerHelper helper

In unit sysutils

Helper for a Integer-typed ordinal value.

Declaration

pascal
TIntegerHelper = class

Descends from it: TIntegerSysHelper

Description

TIntegerHelper contains some auxiliary routines for a Integer-typed ordinal value. It consists mainly of conversion routines to and from other types.

See also

Properties

BitspublicRead or write a bit.
NibblespublicRead or write a nibble.
BytespublicRead or write a byte.

Methods

SizepublicSize, in bytes, of the Integer value.
ToStringpublicConvert the value to string.
ParsepublicConvert from a string.
TryParsepublicTry to convert a string to a Integer, report success or failure.
GetBitprotected
PutBitprotected
GetNibbleprotected
PutNibbleprotected
GetByteprotected
PutByteprotected
ToBooleanpublicConvert to a boolean value.
ToDoublepublicConvert to a double-sized floating point value.
ToExtendedpublicConvert to an extended-sized floating point value.
ToBinStringpublicConvert to a binary string representation.
ToHexStringpublicConvert to a hexadecimal string representation.
ToSinglepublicConvert to an single-sized floating point value.
SetBitpublicSet bit to 1.
ClearBitpublicSet bit to 0.
ToggleBitpublicInvert bit.
TestBitpublicCheck bit.
ClearpublicSet value to 0.
HighestSetBitPospublicReturn the position of the leftmost bit set.
LowestSetBitPospublicReturn the position of the rightmost bit set.
SetBitsCountpublicCount number of bits set.

Types and constants

MaxValueMaximum value for a Integer.
MinValueMinimum value for a Integer.
MaxBitMaximum value for a bit.
MinBitMinimum value for a bit.
MaxNibbleMaximum value for a nibble.
MinNibbleMinimum value for a nibble.
MaxByteMaximum value for a byte.
MinByteMinimum value for a byte.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.