Check the mapping of your index - I assume rotativocap is indexed as a non-floating point type (like integer). If that's the case the docvalues (which are used here to calculate the scripted field) will work with a rounded version of the value.
To fix the problem, change your mapping so rotativocap is a e.g. a double, then re-index your existing data.
It seems like one screenshot is missing in your answer.
Yes, this behavior is expected. The value you are seeing in the search is the one from _source (the original document transmitted to Elasticsearch), but it's not what powers scripted fields. Scripted fields work with docvalues which are the indexed values based on the type in the mapping (in this case long, so 219.37 is rounded to 219).
In my previous post I mentioned how you can fix this - you need to adjust your mapping. This should be done like this:
Create new index with the corrected mapping
Use the re-index api to reindex your data from the current index into the new one with the correct mapping
Use the new index from now on (you can work with index aliases so you don't have to change the name everywhere)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.