decimal number into words?

decimal number into words?

Hi there, I've been trying to convert a decimal number from a currency field into words to a text field using a function  but I just found this solution: click here , which only works for int values... can anyone help me to modify this code so it can work for decimal values or is there any different way to do it? I would really appreciate your help! thanks in advance.