We've just migrated to Visual Studio 2017 and due to the change described here the serialized output of a double value using std::scientific
does not carry anymore 2 digits in the exponent but only one.
BEOFRE: 5.49000000000000000e+002
NOW : 5.49000000000000000e+02
We use boost::serialization
to serialize to XML.
We were thinking to switch to boost::multiprecision
to handle bigger number, but still we have to fix this issue with the digits in the exponent.
Is there any way to get back to the old notation 'e+002' or even customize it with boost::multiprecision
?
Reading the relevant section, it appears that _set_output_format with not _TWO_DIGIT_EXPONENT might give the old behaviour?