Transform a number in text

OK, just testing it very quickly, it does seem to work without having to convert the number to an Integer or Float. Are you actually calling the numberToWords function?

You may just need to use the function as you wrote it in your original post, but you have to actually call it in your code by adding the following to the very bottom. This will actually call the function and pass the p1 parameter into it.

return numberToWords(p1);

1 Like