News for hackers. Stuff that matters.
Re:Rendering floating numbers: advances in problems you didn... by zozbot234 on Friday October 30, 2020 @02:53AM (#24939805)
Unless you actually need to output human-readable numbers for some reason, the sensible approach when serializing floating point numbers is to just use hexfloats and skip the problematic "rendering" part altogether.
Re:Rendering floating numbers: advances in problems you didn... by benibela on Friday October 30, 2020 @08:02AM (#24941316)
That is great, until you have to use JSON
Re:Rendering floating numbers: advances in problems you didn... by rixed on Friday October 30, 2020 @05:37PM (#24947118)
It could be argued that if so many people have to use json to serialize floats then our problem is not a technical one.
Re:Rendering floating numbers: advances in problems you didn... by adrian_b on Friday October 30, 2020 @03:58AM (#24940058)
I completely agree