Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Method to convert Number(Currency) to Words

Is there any way in Pharo to convert a number to words. For example: 1200 = one thousand two hundred only.

its not that hard to implement, but just curious to know.

like image 730
Thushar G R Avatar asked Oct 15 '13 15:10

Thushar G R


1 Answers

Integer>>asWords will do this.

1200 asWords returns 'one thousand, two hundred'.

I found it by searching for "thousand" using Pharo's Finder tool.

like image 180
Steve Trout Avatar answered Oct 03 '22 01:10

Steve Trout