Using RepeatString to create a mask in NumberFormat
Today I was working on creating a CSV file that required numeric columns to be a fixed number of digits, using leading zeros to make up the difference. So, for example, if the column required 5 digits, the number 123 should show up as 00123. This is super simple using the NumberFormat() function in CFML, simply specify a mask like so:
<cfoutput>#variables.myNum#</cfoutput>
But, in my particular case, I had several columns that required 12 and 15 digit numbers.

