Anyone know if freemarker can turn a number into a...
# advancedpdf
j
Anyone know if freemarker can turn a number into a text representation, e.g. turn “15,000” into “fifteen thousand”?
j
Is this for printing checks? If so, there's a {check.totalwords} field you can use to get this.
j
no, just in general
j
does this work? https://suiteanswers.custhelp.com/app/answers/detail/a_id/67876/loc/en_US (haven't tested it, but looks like what you're asking for)
I don't think there's a direct conversion inside freemarker unless you wrote out the whole code to do the conversion yourself
g
I have done this before using custom freemarker function. You’ll need to create arrays of numerical words, each for teens, tens, etc. I will try to find it and post it here
j
That would be amazingly helpful