This code gave me 61.382:

<CFSEt var_rate = 9>
<cfset list.amt = 345.98>
<cfset form.ins_prepay = 250.00>


<CFOUTPUT>
((#var_rate#/10) * #list.amt#) - #form.ins_prepay#<BR><BR>

<cfset n_var_rate = #var_rate#/10>

((#n_var_rate#) * #list.amt#) - #form.ins_prepay#<BR><BR>

<cfset final_amount = ((#n_var_rate#*#list.amt#) - #form.ins_prepay#)>

#final_amount#
</cfoutput>

hope that helps

Larry

-----Original Message-----
From: Kim Ahlbrandt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 29, 2000 5:25 PM
To: [EMAIL PROTECTED]
Subject: How to use decimals for calculation


I have a variable, #var_rate#, that is coming back from the table as a 9, 6
, 8 etc.  It needs to be 9%, 6%, 8% and so on to be used in a formula:
("#var_rate#" * "#list.amt#") - "#form.ins_prepay#" .

How can I get this into the correct format for this calculation?  Nothing
I've tried here at the end of the day when my brain is fried has worked.

Thanks,

Kim
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to