The "THEN" part is either (depending upon the rule's dialect) a Java or MVEL code block.

Java defines the ^ operators as a bitwise exclusive or. I suspect you should probably use Math.pow.

Math is in the java.lang package so you shouldn't need to explicitly import.

With kind regards,

Mike

On 24 May 2012 10:02, zeeshan <zeeshan.spring@gmail.com> wrote:
Hi !

Can I put "Power" in Fromula box of THEN part...??

this is the formula that I have to apply....

I want to put this formula in THEN section ---->

             *deathBenefit=sumAssured * [(1 - 1/(1 +
(interestRate/100)^(policyTerm-policyYear+1) / 1 -  1/(1 +
(interestRate/100)^(policyTerm) ]*....

--
View this message in context: http://drools.46999.n3.nabble.com/How-to-put-Power-in-Formula-box-of-THEN-tp4013154.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users