I just fixed the Zero bug. 8/22
Call this custom tag in the following manner.
first: decide where to place the tag in the code.
second:
<CF_NUMBERASSTRING AMOUNT=" # ">
where # is the number that you want converted into a string.
third: use the #numberAsString# variable to place the results
this tag will convert numbers into string for dollar or just number.
example:
Zero Bug Fix
<CF_NUMBERASSTRING AMOUNT="1"> returns
"one"
<CF_NUMBERASSTRING AMOUNT="10"> returns
"ten"
<CF_NUMBERASSTRING AMOUNT="100"> returns
"one hundred"
<CF_NUMBERASSTRING AMOUNT="1,000"> returns
"one thousand"
<CF_NUMBERASSTRING AMOUNT="10,000"> returns
"ten thousand"
<CF_NUMBERASSTRING AMOUNT="100,000"> returns
"one hundred thousand"
<CF_NUMBERASSTRING AMOUNT="1,000,000"> returns
"one million"
<CF_NUMBERASSTRING AMOUNT="10,000,000"> returns
"ten million"
<CF_NUMBERASSTRING AMOUNT="100,000,000"> returns
"one hundred million"
<CF_NUMBERASSTRING AMOUNT="1,000,000,000"> returns
"one billion"
<CF_NUMBERASSTRING AMOUNT="10,000,000,000"> returns
"ten billion"
<CF_NUMBERASSTRING AMOUNT="100,000,000,000"> returns
"one hundred billion"
<CF_NUMBERASSTRING AMOUNT="1,000,000,000,000"> returns
"one trillion"
<CF_NUMBERASSTRING AMOUNT="10,000,000,000,000"> returns
"ten trillion"
<CF_NUMBERASSTRING AMOUNT="100,000,000,000,000"> returns
"one hundred trillion"
Max Number
<CF_NUMBERASSTRING AMOUNT="$999999999999999.99"> returns
"nine hundred ninty nine trillion nine hundred ninty nine billion nine hundred ninty nine million nine hundred ninty nine thousand nine hundred ninty nine dollars and ninty nine cents"
<CF_NUMBERASSTRING AMOUNT="$1999999999999999.99"> returns
"number exceeds 999999999999999.99"
Dollars
<CF_NUMBERASSTRING AMOUNT="$12345.67"> returns
"twelve thousand three hundred fourty five dollars and sixty seven cents"
<CF_NUMBERASSTRING AMOUNT="$123.45"> returns
"one hundred twenty three dollars and fourty five cents"
<CF_NUMBERASSTRING AMOUNT="$12"> returns
"twelve dollars"
<CF_NUMBERASSTRING AMOUNT="$0.45"> returns
"zero dollars and fourty five cents"
<CF_NUMBERASSTRING AMOUNT="$.45"> returns
"zero dollars and fourty five cents"
Numbers
<CF_NUMBERASSTRING AMOUNT="12345.67"> returns
"twelve thousand three hundred fourty five and sixty seven hundredths"
<CF_NUMBERASSTRING AMOUNT="123.45"> returns
"one hundred twenty three and fourty five hundredths"
<CF_NUMBERASSTRING AMOUNT="12"> returns
"twelve"
<CF_NUMBERASSTRING AMOUNT="0.45"> returns
"zero and fourty five hundredths"
<CF_NUMBERASSTRING AMOUNT=".45"> returns
"zero and fourty five hundredths"