Files
archived-yaml-cpp/include/yaml-cpp
Simon Gene Gottlieb abf941b20d Fix float precision (#649)
The issue is that numbers like
2.01 or 3.01 can not be precisely represented with binary floating point
numbers.

This replaces all occurrences of 'std::numeric_limits<T>::digits10 + 1' with
'std::numeric_limits<T>::max_digits10'.

Background:
Using 'std::numeric_limits<T>::digits10 + 1' is not precise enough.
Converting a 'float' into a 'string' and back to a 'float' will not always
produce the original 'float' value. To guarantee that the 'string'
representation has sufficient precision the value
'std::numeric_limits<T>::max_digits10' has to be used.
2018-12-21 09:05:19 -05:00
..
2017-11-10 15:17:46 -08:00
2018-12-21 09:05:19 -05:00
2014-03-22 12:49:16 -05:00
2016-03-16 10:41:12 -07:00
2016-06-12 22:10:14 -05:00
2014-03-23 20:08:54 -05:00
2015-01-24 14:47:00 -06:00
2015-04-02 20:50:11 +01:00
2014-03-22 12:49:16 -05:00
2016-04-01 17:14:59 -05:00
2015-03-29 21:27:20 -05:00
2014-03-22 12:49:16 -05:00
2014-03-23 20:08:54 -05:00
2015-01-24 12:26:16 -06:00