To me it looks like there is a conversion to `real` (80 bit floats) somewhere in the D code and that the other languages stay in `double` mode everywhere. Maybe forcing `double` by disabling x87 on the D side would yield the same results as the other languages?On 10/13/22 3:00 PM, Sergey wrote:[...]It doesn't look really that far off. You can't expect floating point parsing to be exact, as floating point does not perfectly represent decimal numbers, especially when you get down to the least significant bits.[...]
Re: Float rounding (in JSON)
Patrick Schluter via Digitalmars-d-learn Fri, 14 Oct 2022 02:05:59 -0700
On Thursday, 13 October 2022 at 19:27:22 UTC, Steven
Schveighoffer wrote:
- Float rounding (in JSON) Sergey via Digitalmars-d-learn
- Re: Float rounding (in J... Steven Schveighoffer via Digitalmars-d-learn
- Re: Float rounding (... Sergey via Digitalmars-d-learn
- Re: Float rounding (... Patrick Schluter via Digitalmars-d-learn
- Re: Float roundi... bauss via Digitalmars-d-learn
- Re: Float rounding (in J... Sergey via Digitalmars-d-learn