Convert a number to words (english)

number:to_words(INT $number) : STRING

number:to_words("99")
#=> "ninety-nine"

number:to_words(10)
#=> "ten"

number:to_words(0)
#=> "zero"

number:to_words(12398)
#=> "twelve thousand three hundred ninety-eight"

number:to_words(-13)
#=> "minus thirteen"

Copyright ©2013-2022 SunSed®. All rights reserved.