cast
cast copied to clipboard
cast.ToInt("08") returned 0
invalid syntax, returned 0 But the correct one is to return 8
The string "08" is not a decimal number, decimal numbers do not have the prefix "0", nor is it an octal number, octal numbers are only 0-7, nor is it a hexadecimal number, the hexadecimal prefix is "0x ". I don't think this is a problem with the library, I think it's important to be aware of this limitation before using the library and avoid it in advance.