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

Would be nice to have clever and configurable rounding, and also output using "technobabble" multipliers (kilo, meg, gig) #92

Open
tml1024 opened this issue Sep 6, 2021 · 0 comments

Comments

@tml1024
Copy link

tml1024 commented Sep 6, 2021

It would be nice if the library could also be used for conversion to an approximate reading of a number. As in:

970,123,456 => "one gig"
929,456,789 => "nine hundred meg"
1,210,789,123 => "one point two gig"

How exactly to do such rounded conversion would need to be configurable, using some high-level settings with meanings like "at most two digits", "use 'meg' instead of 'million'" etc. With other parameters, the numbers above would instead turn into:

970,123,456 => "nine hundred and seventy million"
929,456,789 => "nine hundred and thirty million"
1,210,789,123 => "one point two one billion"

@tml1024 tml1024 changed the title Clever and configurable rounding, output using "technobabble" units (kilo, meg, gig) Clever and configurable rounding, and also output using "technobabble" units (kilo, meg, gig) Sep 6, 2021
@tml1024 tml1024 changed the title Clever and configurable rounding, and also output using "technobabble" units (kilo, meg, gig) Clever and configurable rounding, and also output using "technobabble" multipliers (kilo, meg, gig) Sep 6, 2021
@tml1024 tml1024 changed the title Clever and configurable rounding, and also output using "technobabble" multipliers (kilo, meg, gig) Would be nice to have clever and configurable rounding, and also output using "technobabble" multipliers (kilo, meg, gig) Sep 6, 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

No branches or pull requests

1 participant