문제

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.

도움이 되었습니까?

해결책

Integer>>asWords will do this.

1200 asWords returns 'one thousand, two hundred'.

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top