TInteger.BitLength

Returns the minimum number of bits needed to store the 2's complement representation excluding the sign bit

Source

Integer.pas (107)