Convert dollars to words (english description)

number:dollar_to_words(FLOAT $dollar) : STRING

number:dollar_to_words(1.2299)
#=> "one dollar twenty-two cents"

number:dollar_to_words(-192839)
#=> "minus one hundred ninety-two thousand eight hundred thirty-nine dollars"

number:dollar_to_words(10.0)
#=> "ten dollars"

number:dollar_to_words(306789643)
#=> "three hundred six million seven hundred eighty-nine thousand six hundred forty-three dollars"

number:dollar_to_words("11")
#=> "eleven dollars"

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