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"
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"