paboyle / Grid

Data parallel C++ mathematical object library
GNU General Public License v2.0
155 stars 111 forks source link

(XML and JSON) serialisation control of floating point representation #134

Open paboyle opened 7 years ago

paboyle commented 7 years ago

We need a way to control how many bits and scientific vs. decimal notation in all serialised floating point numbers.

aportelli commented 6 years ago

I have done it in feature/hadrons cf. 54d789204fec8478eedd936f9a6d10e4ce5d13dd. I know it would be better in develop but there are some new changes there I don't want to pull now that I use the Hadrons branch for the 48^3 production. I will let this open to remind me to do it later.

Also, I made a general interface to save the precision and format but each ASCII format needs to implement how it is used in practice. I did it for XML only.