How to format sum_bucket aggregation float output?

I'm only a user and not sure about the internal argorithm about scaled_float, but I suppose aggregation uses only its value as float regardless of numeric field types because even aggregation on integer field returns float as follows.
My guess is that the conversion to float is done before the aggregation, which is the cause of your rounding error. Note that this is just my guess :grinning:

{
"aggregations" : {
    "my_sum" : {
      "value" : 85425.0
    }
  }
}