E9.2 Groovy Script - Multiply variables

coolkl

Well Known Member
Hello All,

Maybe this is simple question. However unable to find. In my groovy script I want to multiple a variable by -1
Ex TaxAmount = TaxAmount * -1.

However unable to find the syntax. I did try to search the Oracle guide. Request your help.

Thanks,
Coolkl
 
Got it thanks


numQuantityShort = numQuantityOrdered * numIssueQuantity; // For multiplication
//numQuantityShort = numQuantityOrdered.subtract(numIssueQuantity);
returnMap.put("quantityShort", numQuantityShort);
 
Back
Top