8000 use log10 to calculate the number of digits by Johann150 · Pull Request #332 · brendanzab/codespan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

use log10 to calculate the number of digits #332

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

Merged
merged 1 commit into from
Aug 8, 2021

Conversation

Johann150
Copy link
Contributor

This way it is not necessary to have a loop and should be a little bit more efficient.

This way it is not necessary to have a loop and should be a little bit
more efficient.
@Johann150 Johann150 merged commit 6592828 into master Aug 8, 2021
@Johann150 Johann150 deleted the count-digits-efficient branch August 8, 2021 12:28
@brendanzab
Copy link
Owner

Oooh, super cool! 🎉

@brendanzab
Copy link
Owner

Seems like we are waiting on rust-lang/rust#70887 to avoid the float conversion

Johann150 added a commit that referenced this pull request Aug 11, 2021
@Johann150
Copy link
Contributor Author

Ah good catch, added a comment on that.

mbartlett21 pushed a commit to mbartlett21/codespan that referenced this pull request Oct 28, 2021
This way it is not necessary to have a loop and should be a little bit
more efficient.
mbartlett21 pushed a commit to mbartlett21/codespan that referenced this pull request Oct 28, 2021
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
0