Take a look at the coercing feature, which truncates fields to integers. See also https://www.elastic.co/guide/en/elasticsearch/reference/7.3/number.html for the default setting of coerce
As you can see in the mapping, by default a long is picked, and the floating point numbers get coerced into a long.
hope this helps.