JRUtils - Numbers

by Lummox JR
Helpful procs for using numbers in text
ID:125623
 
The Numbers library provides a suite of procs that are useful for times when you want to use numbers in text output without spitting out just the raw number itself. The following operations are all supported:

Pluralization: Like a smarter version of the \s macro, you can easily convert most English words to their plural form.

Commafication: Commas can be added to numbers for classier display.

Text conversion: Whole numbers can be converted to their spelled-out form; this includes the ordinal (-th) form as well.

Leading zeros or spaces: A useful proc is included for adding leading characters when displaying a number.

In addition, most of the above routines are available in versions that can parse a larger block of text.