BigDecimal values are not always evaluated correctly in comparisons

Solution Verified - Updated -

Issue

  • There has been occasions where comparisons of BigDecimal values in rules have not evaluated correctly. For example a rule will compare 24.30 < 0.5 * 48.60 and return true, whereas in fact it should return false, as 24.30 = 0.5 * 48.60.

Environment

  • Java

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content