yaml-cpp/src
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
..
contrib Use nullptr instead of 0 or NULL (clang-tidy warns) (#603) 2018-07-02 23:59:04 -05:00
binary.cpp Fix include for std::isspace, fixes #621 (#622) 2018-09-04 08:34:18 -05:00
collectionstack.h Suppress unused variable warning in release builds (#611) 2018-09-03 10:37:47 -05:00
convert.cpp Run clang-format 2015-03-29 21:27:20 -05:00
directives.cpp clang-format 2014-03-23 20:08:54 -05:00
directives.h Run clang-format 2014-03-22 12:49:16 -05:00
emit.cpp Run clang-format. 2016-10-12 00:00:39 -05:00
emitfromevents.cpp Fix input strings with quotes giving "!" tagging artifacts. 2016-12-02 08:58:48 -06:00
emitter.cpp Some small changes as a result of using a static analyzer (#643) 2018-11-23 11:12:55 -06:00
emitterstate.cpp Fix float precision (#649) 2018-12-21 09:05:19 -05:00
emitterstate.h Fix compiler warnings about truncations. 2016-12-03 10:09:22 -06:00
emitterutils.cpp Some small changes as a result of using a static analyzer (#643) 2018-11-23 11:12:55 -06:00
emitterutils.h Fix compiler warnings in MSVC, #448 (#453) 2016-12-13 16:37:29 -05:00
exceptions.cpp Fix _NOEXCEPT not available in VS2017 15.8. Use noexcept for VS2015+ (#597) 2018-06-30 16:23:28 -05:00
exp.cpp Run IWYU 2014-03-22 22:46:04 -05:00
exp.h Fix tag parsing with () (#532) 2018-01-28 10:18:55 -06:00
indentation.h Fix warnings on visual studio, including changing unsigned to std::size_t 2015-01-24 14:38:22 -06:00
memory.cpp Run IWYU 2014-03-22 23:14:48 -05:00
node_data.cpp fix up static, so works as DLL (#559) 2018-09-25 10:12:12 -04:00
node.cpp Run clang-format 2014-03-22 13:05:03 -05:00
nodebuilder.cpp Use nullptr instead of 0 or NULL (clang-tidy warns) (#603) 2018-07-02 23:59:04 -05:00
nodebuilder.h More useful error messages. 2015-04-02 20:50:11 +01:00
nodeevents.cpp Add flow/block style setting on Nodes 2015-01-24 13:11:43 -06:00
nodeevents.h Run IWYU 2014-03-22 23:14:48 -05:00
null.cpp Run clang-format. 2016-10-12 00:00:39 -05:00
ostream_wrapper.cpp Use nullptr instead of 0 or NULL (clang-tidy warns) (#603) 2018-07-02 23:59:04 -05:00
parse.cpp Update doc, formatting for parse.h. 2016-05-12 23:20:03 -05:00
parser.cpp Update docs, formatting for Parser. 2016-05-12 23:13:55 -05:00
ptr_vector.h Run clang-format. 2016-10-12 00:00:39 -05:00
regex_yaml.cpp Add EmitterStyle, which will allow sequence or map style (i.e., flow or block) to be preserved between parsing and emitting 2015-01-24 12:19:20 -06:00
regex_yaml.h Fix -Wmaybe-uninitialized warning (#600) 2018-09-23 19:40:53 -04:00
regeximpl.h clang-format 2014-03-23 20:08:54 -05:00
scanner.cpp Use nullptr instead of 0 or NULL (clang-tidy warns) (#603) 2018-07-02 23:59:04 -05:00
scanner.h Use nullptr instead of 0 or NULL (clang-tidy warns) (#603) 2018-07-02 23:59:04 -05:00
scanscalar.cpp Some small changes as a result of using a static analyzer (#643) 2018-11-23 11:12:55 -06:00
scanscalar.h Avoid copying cached RegExes for scalars 2016-01-30 18:32:00 -06:00
scantag.cpp Run IWYU 2014-03-22 22:46:04 -05:00
scantag.h Run clang-format 2014-03-22 12:49:16 -05:00
scantoken.cpp Avoid copying cached RegExes for scalars 2016-01-30 18:32:00 -06:00
setting.h Replace Boost usage with C++11 features 2016-01-10 22:44:15 -05:00
simplekey.cpp Use nullptr instead of 0 or NULL (clang-tidy warns) (#603) 2018-07-02 23:59:04 -05:00
singledocparser.cpp Make null handling YAML 1.2 compliant. 2016-04-01 17:14:59 -05:00
singledocparser.h Replace Boost usage with C++11 features 2016-01-10 22:44:15 -05:00
stream.cpp Run clang-format 2015-03-29 21:27:20 -05:00
stream.h clang-format 2014-03-23 20:08:54 -05:00
streamcharsource.h Run clang-format 2014-03-22 12:49:16 -05:00
stringsource.h Run clang-format 2014-03-22 12:49:16 -05:00
tag.cpp Run IWYU 2014-03-22 22:46:04 -05:00
tag.h Run IWYU 2014-03-22 22:46:04 -05:00
token.h Run clang-format 2015-03-29 21:27:20 -05:00