I could be misremembering, but I believe that when rendering to a String
, Double
will use the minimum number of digits required for the value to be recovered losslessly. E.g., since there's no valid Double
value closer to 3.133 than 3.132999999999999488
, we don't need more precision to recover the exact same value.
5 Likes