riskbook/number-to-words/1.0.0

Rerouted (fork, verified). The original repository is gone. This copy comes from a fork that still has the tag. The Lamdera package server serves a copy recovered from https://github.com/SupercedeTech/number-to-words (a fork).

What we checked: Rebuilt with git archive from commit 284e4442c3df of https://github.com/SupercedeTech/number-to-words (a fork) (zip prefix riskbook-number-to-words-284e444/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 526e09c64ab609d0a13ecf00f55f90839f6f0228.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/riskbook/number-to-words/zipball/1.0.0/

NumberToWords.ToWordsOrdinal

This module contains a function that allows you to get ordinal number words from numbers

toWordsOrdinal : Float -> Result NTWError String

Convert number into ordinal number words.

toWordsOrdinal 0    == Ok "zeroth"
toWordsOrdinal 1.9  == Ok "second"
toWordsOrdinal 1000 == Ok "one thousandth"
toWordsOrdinal NaN  == Err NaNOrInfinty
toWordsOrdinal -10  == Ok "minus tenth"