Elasticsearch aggregation sum

I'm trying to sum revenue from orders, But the results are in float .6299743652344

Any idea why?

Field in data is .00

("grand_total": 84.5)

s = Search(using=ES, index='orders')
s = s[:0]
s.aggs.metric('rev', 'sum', field='grand_total')
res = s.execute()
return res.aggs.rev.value

result: Response: {'rev': {'value': 3195.6299743652344}}

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