Why not:  

<cfset vTotalSellPrice = VAL(vCoverCost) + VAL(vClickCost) +
VAL(vBindingCost) + VAL(vPackagingCost)>




-----Original Message-----
From: Lee [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 04, 2005 4:53 PM
To: CF-Talk
Subject: Number to String

This is making me crasy. I'm doing a bunch of conditional stuff using
CFSET to add multiply a bunch of numbers for costing. The variables all
stay numbers until I add them together like this.

<cfset vTotalSellPrice = vCoverCost + vClickCost + vBindingCost +
vPackagingCost>

At that point if the number is greater than 999 the number adds a comma
and turns into what ColdFusion thinks is a string.

Lee Surma



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:213818
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