Elasticsearch Avg Aggregation Discrepancy

Elasticsearch average metric aggregation sometimes shows multiple decimal places while it sometimes shows accurate decimal places.

For these 4 values: 1.57, 15.73, 23.22 and 2.42. Average should be 10.735.

But, ES Average Aggregation showed 10.7350000001 in the first hit. However, from second hit, it showed 10.735.

What could be the reason behind this discrepancy?

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