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

Put commas every 3 digits in the number or integer presented #1555

Open
SimiHunjan opened this issue Feb 15, 2025 · 0 comments
Open

Put commas every 3 digits in the number or integer presented #1555

SimiHunjan opened this issue Feb 15, 2025 · 0 comments

Comments

@SimiHunjan
Copy link
Contributor

SimiHunjan commented Feb 15, 2025

Problem

Anywhere there’s a number of hbars or dollars or tokens anywhere, always put commas every 3 digits in the integer part of it (except not in entity IDs). Like 1,234,567.12345678.

if an HBAR amount is not an integer number of hbars, then pad the decimals by adding zeros on the right to get 8 decimal places. Don’t allow the user to enter more than 8 decimal places for hbars.

Solution

See above

Alternatives

No response

@SimiHunjan SimiHunjan changed the title Put commas every 3 digits in the number presented Put commas every 3 digits in the number or integer presented Feb 15, 2025
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

1 participant