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

fixed: large number #172

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Conversation

zzggo
Copy link
Contributor

@zzggo zzggo commented Nov 14, 2024

No description provided.


const newintegerPart = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
let result = `${newIntegerPart}.${decimalPart}`;
Copy link
Contributor

@lmcmz lmcmz Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we use some common lib to handle code formatting ?
Such as http://numeraljs.com/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will apply it if additional requirements of number format are added later.

@lmcmz lmcmz requested a review from tombeckenham November 14, 2024 04:56
@zzggo zzggo merged commit ef93216 into dev Nov 14, 2024
1 check passed
@zzggo zzggo deleted the 90-featureextension-display-of-large-token-amounts branch November 14, 2024 05:15
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

Successfully merging this pull request may close these issues.

3 participants