[rules-users] How to put "Power" in Formula box of THEN ?

Michael Anstis michael.anstis at gmail.com
Thu May 24 05:12:25 EDT 2012


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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120524/34d80f0e/attachment.html 


More information about the rules-users mailing list