Change your d value to this and it works also:

<cfset d=val(a+b)>

--Ferg

Martin Thorpe wrote:
> So I was thinking that evaluate should not make any difference to
> mathematical calculations, but I have been shown this by some
> mathematical guy and the only calculation that is correct is the
> evaluated one, is there a way to do this without evaluate() or not:
>
>  
>
> <cfset a=336.6>
>
> <cfset b=448.8>
>
> <cfset c=785.4>
>
> <cfset d=a+b>
>
> <cfset e=evaluate(a+b)>
>
> <cfoutput>
>
> #a# + #b# - #c# = #a+b-c# <br>
>
> ( #a# + #b# ) - #c# = #d-c# <br>
>
> eval( #a# + #b# ) - #c# = #e-c# <br>
>
> </cfoutput>
>
>  
>
> cheers
>
> Martin
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235457
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