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

Allow integer with underscore for readability #630

Closed
albttx opened this issue Mar 21, 2023 · 0 comments · Fixed by #635
Closed

Allow integer with underscore for readability #630

albttx opened this issue Mar 21, 2023 · 0 comments · Fixed by #635

Comments

@albttx
Copy link
Member

albttx commented Mar 21, 2023

Description

in go, we can use _ for a better readability of a large integer, which is really useful in crypto using large amount often

const TotalSupply = 1_000_000_000
thehowl pushed a commit that referenced this issue Mar 28, 2023
* chore(gnolang): handle integers with _

* chore(gnolang): handle floats with _

* chore: add tests
peter7891 pushed a commit that referenced this issue Mar 29, 2023
* chore(gnolang): handle integers with _

* chore(gnolang): handle floats with _

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

Successfully merging a pull request may close this issue.

1 participant