-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected results with padded strings #182
Comments
By reading the source code, I found that this problem occurs because 0 is the prefix of octal (just like 0x for hex). Maybe you can discard the leading 0 first. |
https://play.golang.com/p/mPCpDwylr7T Thank you for the explanation. In my opinion, if |
https://play.golang.com/p/3oTZVLEkdas
I'd expect the result to be
8
in each scenario. However,"08"
ends up hitting a path where the base is changed and the parsing returns an error that we don't see.The text was updated successfully, but these errors were encountered: