func.bit_length

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 April 06, 2022 at 10:08 AM EST: Initial Documentation Commit (371ae8f)