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

Luke/big num to precision improvement #1364

Merged
merged 14 commits into from
Dec 20, 2024

Conversation

lukecaan
Copy link
Member

@lukecaan lukecaan commented Dec 6, 2024

No description provided.

@lukecaan lukecaan force-pushed the luke/BigNum_toPrecision_improvement branch from 96268d7 to 32897bd Compare December 10, 2024 05:22

expect(bnBaseAmount(0.001004).toPrecision(4)).to.equal('0.001004');

expect(bnBaseAmount(0.001).toPrecision(4)).to.equal('0.001');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these the super small number cases? I was assuming it would be more a number like .000004 or something like that. Just curious to understand.

@lukecaan lukecaan merged commit 816dff0 into master Dec 20, 2024
9 of 11 checks passed
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.

2 participants