func.bit_length

Returns the number of bits required to represent an integer in binary, excluding the sign and leading zeros

Returns the number of bits required to represent an integer in binary, excluding the sign and leading zeros

Syntax

func.bit_length(string)

Examples

func.bit_length('text') --> 32
Last modified November 27, 2023 at 12:56 PM EST: Restructured the file structure/a few changes (f6c58b8)