Rule doesn't match when the amount is between 8.7 and 8.89

Viewed 23

The drl's when condition looks something like below. The equals operator for the amount works fine for any amount except in the range from 8.7 to 8.89. It works for 1.01, 4.45, 8.55 or 8.69. But the mentioned range doesn't work only for equals operator. Other operators like <= or >= works. Anyone faced this issue before? if so, why is it happening for that range?

txnRuleInfo: TransactionRuleInfo(
    transactionInfo.transactionAmount==8.7,
    transactionInfo.transactionType==TransactionType.SALE
)
0 Answers
Related