Вопрос

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