[vtk-developers] Call for Comments: Ascii representation of floats and doubles in files
Sean McBride
sean at rogue-research.com
Thu Mar 1 11:51:13 EST 2018
On Thu, 1 Mar 2018 09:32:49 -0700, David Gobbi said:
>I agree that floats should be printed so that conversion is lossless.
>Python's console output does this and I find it incredibly useful.
>
>Not sure if we need to add a new third-party library for this, though,
>especially one that duplicates so much of C++'s built-in machinery.
>Isn't it just a matter of printing enough digits?
Yes, a nice article on the subject:
<https://randomascii.wordpress.com/2013/02/07/float-precision-revisited-nine-digit-float-portability/>
Sean
More information about the vtk-developers
mailing list