CI

docs.rs/shortscale crates.io/crates/shortscale

Converts numbers into English words.

The short scale, has different words for each power of 1000.

This library expresses numbers from zero to thousands, millions, billions, trillions, and quadrillions (up to 999999999999999_999).

Library function signature

rust pub fn shortscale(num: u64) -> String

Example

```rust use shortscale::shortscale;

asserteq!( shortscale(420000999015), "four hundred and twenty billion nine hundred \ and ninety nine thousand and fifteen" ); ```

For the JavaScript version see jldec/shortscale.

Copyright 2021, Jürgen Leschner - github.com/jldec - MIT license