public
static
|
normalizeToDecimal(string $literal): string
Converts an integer literal in any base, such as 0x1F, 0b101, 0o17 or 017,
to a decimal number of any size, such as 31,…
Converts an integer literal in any base, such as 0x1F, 0b101, 0o17 or 017,
to a decimal number of any size, such as 31, so that (int) casts read it correctly.
|
#
|