ColdFusion function DollarFormat() has no options for removing cents. Here's a function to solve the problem.
A custom function will do the trick!
Need a dollar figured displayed but without the cents? Use this custom function to strip off the decimal and cents while maintaining parenthesis for negative amounts.
<cfscript>
function
MyDollarFormat(money_string){
money_string = DollarFormat(money_string);
money_string = rereplaceNoCase(money_string, '\.\d{2}', '');
return(money_string);
}
</cfscript>
<cfoutput>#MyDollarFormat(someMoney)#</cfoutput>
+