ordinal-0.6.0.0: Convert numbers to words in different languages.
Maintainerhapytexeu+gh@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Numerals.Prefix

Description

A module that defines Latin prefixes. These prefixes are used to construct names for the long and short scales. So the m, b, tr in million, billion, trillion.

Synopsis

Latin prefixes

latinPrefixes Source #

Arguments

:: Vector Text

A Vector of Text objects to allow fast lookup.

The Latin prefixes in a Vector for O(1) lookup.

latinPrefixes' Source #

Arguments

:: [Text]

A list of Text objects. This makes explicit recursion more convenient.

A list of Latin prefixes, used for the long and short scale.

latinPrefix Source #

Arguments

:: Integral i 
=> i

The value to map on a Latin prefix.

-> Maybe Text

The corresponding Latin prefix, given this exists.

Lookup the given Latin prefix for the given value.