Rounding off values to CEIL in JSON Inline

I have an integer field in a metric and in its JSON Inline I have a calculated field (stop_time-start_time) and the value of a calculated field is a float value. But somehow I am getting only an integer part of that value and not float. Also an integer is always a floor value. (The output is always an integer may be because the field used for metric is of type integer).


1.4 = 1
1.9 = 1
0.7 = 0

How can I change it to float or if not then atleat make it CEIL. because I dont want to show the field value as 0 (zero).

Can you check the mappings for that field? If elasticsearch thinks it's an integer that could be why it's dropping the decimal

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