Skip to content
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

not safe for uint64 #89

Open
m11y opened this issue Dec 11, 2019 · 1 comment
Open

not safe for uint64 #89

m11y opened this issue Dec 11, 2019 · 1 comment

Comments

@m11y
Copy link

m11y commented Dec 11, 2019

I have a value id=16607535815717977617:

id1 := cast.ToString(id)            // -1839208257991573999
id2 := strconv.FormatUint(id, 10)   // 16607535815717977617

which is an unexpected behavior.

@shockerli
Copy link

I have a value id=16607535815717977617:

id1 := cast.ToString(id)            // -1839208257991573999
id2 := strconv.FormatUint(id, 10)   // 16607535815717977617

which is an unexpected behavior.

you can try cvt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants