The way to convert numbers (currencies) into words

Is there a way in Faro to convert numbers to words? For example: 1200 = one thousand two hundred.

it is not so difficult to implement, but just curious to find out.

+4
source share
1 answer

Integer>>asWords will do it.

1200 asWordsreturns 'one thousand, two hundred'.

I found it by searching for “thousands” using the Pharo Finder tool.

+4
source

All Articles