Should be an easy change. In DollarAsString() you'll see a line that reads:

if(cents) 

That checks to see if cents is not 0, so just remove (or comment out) that
line and it should do what you want.

--- Ben



-----Original Message-----
From: Thane Sherrington [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 16, 2005 7:50 AM
To: CF-Talk
Subject: NumberAsString UDF question

I'm using Ben Forta's NumberAsString and DollarAsString, and I'd like it to
convert 1.00 to "One dollar and zero cents", but it converts to "One
dollar."  Is there a version that does the conversion I'm looking for?

T




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209657
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to