SupercedeTech / number-to-words / NumberToWords.Error

This module contains a type that allows you to determine the type of error that may occur during conversion.

Type and Constructors


type NTWError
    = NaNOrInfinty
    | TooBig

A NTWError is either NaNOrInfinty meaning the computation failed because user pass NaN or Infinite, or it is an TooBig meaning that user pass number that more than max safe int.