Crate shortscale[][src]

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 999_999_999_999_999_999.

github | crates.io

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

Modules

extra

Conditionally-compiled for historic reference.
To include in tests and benchmarks set RUSTFLAGS=“–cfg extra”

Functions

shortscale

Returns String with words given an unsigned integer.

shortscale_string_writer

Same as shortscale but writes words into mutable String.