No, I am not sure why you think it would return 9 if the calculated
value is 9,999.00
Without using NumberFormat it would return: 9999
Here is a test I ran:
<CFSET vCoverCost = 1000.00>
<CFSET vClickCost = 2009.00>
<CFSET vBindingCost = 3090.00>
<CFSET vPackagingCost = 4900.00>
<cfset vTotalSellPrice = VAL(vCoverCost) + VAL(vClickCost) +
VAL(vBindingCost) + VAL(vPackagingCost)>
<CFOUTPUT>
Without formatting: #VTotalSellPrice#<BR>
With Formatting:
#NumberFormat(VTotalSellPrice,"999,999,999.00")#
</CFOUTPUT>
Without formatting: 10999
With Formatting: 10,999.00
-----Original Message-----
From: Lee [mailto:[EMAIL PROTECTED]
Sent: Friday, August 05, 2005 9:24 AM
To: CF-Talk
Subject: Re: Number to String
On Thu, 4 Aug 2005 17:24:04 -0400
"Adkins, Randy" <[EMAIL PROTECTED]> wrote:
> Why not:
>
> <cfset vTotalSellPrice = VAL(vCoverCost) +
>VAL(vClickCost) +
> VAL(vBindingCost) + VAL(vPackagingCost)>
>
>
If I'm not mistaken that would take "9,999.00" and return 9.
The error has stopped happening. I guessing it was a bad data thing.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:213847
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54