Skip to main content

base36_to_int

Convert a base 36 string to an int. Raise ValueError if the input won't fit into an int.

def base36_to_int(
s: string
) - > int

Convert a base 36 string to an int. Raise ValueError if the input won't fit into an int.

Parameters

NameTypeDescription
sstringThe base 36 encoded string to be converted, limited to a maximum of 13 characters to ensure it fits within a 64-bit integer range

Returns

TypeDescription
intThe integer representation of the base 36 encoded string