Convert cents to words (english description)

number:cent_to_words(INT $cent) : STRING

number:cent_to_words(799)
#=> "seven dollars ninety-nine cents"

number:cent_to_words(0)
#=> "zero dollars"

number:cent_to_words(-10)
#=> "zero dollars minus ten cents"

number:cent_to_words(1932988)
#=> "nineteen thousand three hundred twenty-nine dollars eighty-eight cents"

$x = type:to_integer($x);
number:cent_to_words("1")
#=> "one dollar one cent"

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