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.ToWords

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

toWords : Float -> Result NTWError String

Convert number into words.

toWords 0    == Ok "zero"
toWords 1.9  == Ok "two"
toWords 2222 == Ok "two thousand, two hundred twenty-two"
toWords NaN  == Err NaNOrInfinty
toWords -19   == Ok "minus nineteen"