diff --git a/include/toml11/parser.hpp b/include/toml11/parser.hpp index 51d71c9..6abdf63 100644 --- a/include/toml11/parser.hpp +++ b/include/toml11/parser.hpp @@ -610,6 +610,10 @@ parse_floating(location& loc, const context& ctx) fmt.prec -= 1; } } + else if(fmt.fmt == floating_format::hex) + { + fmt.prec = std::numeric_limits::max_digits10; + } else { // width after decimal point