Same numbers dont equal

When I compare two equal numbers in a Scripted Field I get a Boolean = false. Hows is this possible?

My Numbers (first one: result of substraction , second a static number) are actually the same.
Both are type double. I rounded them and compared them (11.94 == 11.94) , but Kibana gives me false

Can anyone help please ?!

Can you show us the scripted field please?

This thread has some examples of comparing numbers, make sure you are following a similar pattern:

def a = doc['q60tu01.D329-GESAMT-DATEN.D329-VERTRAG-DATEN.D329-VTG-ZAHL-BEITR'].value; >> is 12.0
def b = doc['q60tu01.D329-GESAMT-DATEN.D329-VERTRAG-DATEN.D329-VTG-RABATT-BEITR'].value; >> is 0.06
def c = doc['Q17TA21.beitragRatierlich'].value; >> is 11.94

(Math.round(a * 100.0) / 100.0) - (Math.round(b * 100.0) / 100.0) == (Math.round(c * 100.0) / 100.0)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.