Hello All: 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-newbie/message.cfm/messageid:4314 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
