Converting Numbers With ICU4J Vs ColdFusion UDF
Client requested number spellout on website. Compared ColdFusion UDF to ICU4J, chose ICU4J for 180+ locales support, title case capitalization & hyphenized numbers.
(This is a repost from my abandoned tumblr blog; dated 2016-11-17) A client requested that we spell out numbers on their website in order to clarify some financial totals. I initially planned on using the ColdFusion NumberAsString UDF from 2002. After reviewing the results, I thought it was worth a unit test comparison to review the results against ICU4J (java). In the end, I decided to use ICU4J because: ICU4J converts text using 180+ locales. Numbers are translated to each language (Chinese, Thai, French, Spanish, etc) UDF adds title case capitalization to all number strings. (if needed, y...