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

Formatting numerical output #24

Open
graysky2 opened this issue Oct 28, 2020 · 2 comments
Open

Formatting numerical output #24

graysky2 opened this issue Oct 28, 2020 · 2 comments

Comments

@graysky2
Copy link

graysky2 commented Oct 28, 2020

A cosmetic suggestion regarding the format of numbers outputted in the estimated stanza: use either commas for better readability or use M or B or T etc. suffixes and some sci notation.

Currently:

% wireguard-vanity-address bunny
searching for 'bunny' in pubkey[0..10], one of every 5592405 keys should match

Looks much nicer as:

searching for 'bunny' in pubkey[0..10], one of every 5,592,405 keys should match

Or as:

searching for 'bunny' in pubkey[0..10], one of every 5.59 M keys should match
@warner
Copy link
Owner

warner commented Dec 12, 2021

good idea.. does anybody have a favorite crate for doing this formatting?

@graysky2
Copy link
Author

Been a while on this. Did you have any ideas/time?

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

2 participants