Here’s a little utility function that adds an appropriate suffix after numbers to show them as they might be said:
Best used for smallish positive numbers. Original use was to generate phrases like this:
- Twice a year on June 30th and December 31st.
- Yearly on February 28th.
Limitations
- Doesn’t quite give what you’d expect for negative numbers
- Not intended to convert the whole number into words
Comments
blog comments powered by Disqus