Math.divide function is throwing errors.
Hi Team,
I have a requirement to calculate the Fee(in %) with the input of Fee and Loan Amount. Yes it's simple. But the Math.divide function is throwing errors in the Expression Builder.
Formula used: Fee(in %) = (Fee*100)/LoanAmount.
I've written the following expression in the Expression Builder.
@Math.divide(.AdministrativeFee,.ProposedLoanAmount)
When clicked on the Test at the Top right corner of the Expression Builder, it's showing error as
"Cannot evaluate the expression: @Math.divide(.AdministrativeFee,.ProposedLoanAmount)" |
Both the fields are decimal only.
Tried alternatives as:
1. @Math.divide(toDecimal(.AdministrativeFee),toDecimal(.ProposedLoanAmount))
2. @Math.divide(.AdministrativeFee,@Math.divide(.ProposedLoanAmount,1))
But none worked.
Could someone please help me with this..!