Hello All, Paul suggested trying here on CFTalk to shed some light on
the below issue...
for addtl' info, included his findings as well.
 
Wondering why the following would happen, when hard coding a value, the
numberFormat() rounds the number as expected however, when outputting
the same value derived from a calculation, the value is not rounding as
expected.
 
Example:
variables. xValue = 8815.05
 
variables.yValue=   881.505
 
 
<cfset variables.newValue = variable.xValue + variable.yValue >
 
variables.newValue is = 9676.555
 
#NumberFormat(variables.newValue,'__________.__')#  Result is 9676.55
 
but
<cfset variables.newValue  = 9676.555>
#NumberFormat(variables.newValue,'__________.__')#  Result is 9676.56
 
Why would hard coding the same exact value return different result?
 
Thank you
 
Kris



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318400
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to