[][src]Crate 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 999_999_999_999_999_999.

github | crates.io

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

Modules

extra

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

Functions

shortscale

Returns String with words given an unsigned integer.
Builder implementation mutates pre-allocated String by calling push_str().