Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Ganesha #1
CF Calculation Problem
I have running into problems with a commissions calculation app i am working
on.
Currently I take the amount and apply a percentage to it to get the commission
amount, works great and accuratly as long as its a base number like 1,2,3,
or 4 etc if decimals are used like 2.5 it errors because my code which looks
like
<cfset commamount = getrecord.comm_amount * ".0#getrecord.comm_perc#">
Is using a decimal in the Cfset to get the proper amount.
Anyone know of any way to do this calculation without forcing the .0 in the
commission percent variable?
Thanks
Mike
Ganesha Guest
-
Calculation
Hi, I'm trying to take data from my database and add them (like field 1 + field 2). Somehow, it doesn't seem to be working. Anybody would know a... -
Calculation based on calculation
I'm new to Acrobat 5.05 and Javascript... I have a simple issue/question: There are 3 columns, QUANTITY, EACHES COST, LINE TOTAL As the... -
problem with calculation
var x=8.7 place a button with the following script on(release){ trace(x--) } see that x=0.6999999 after 8 clicks i have some calculations... -
Calculation problem...please
Hello. I am trying to do the following calculation but I am have a problem. I have an application that has multiple files. One file is a... -
[PHP] Simple Math Calculation Problem....
$Days = int(($clockDate - $inputDate) / (24 * 3600)); you tried that? -
adonis1976 #2
Re: CF Calculation Problem
Can you do something like this?
<cfset commamount = (getrecord.comm_amount) * (getrecord.comm_perc/100)>
adonis1976 Guest



Reply With Quote

