diff --git a/include/toml11/parser.hpp b/include/toml11/parser.hpp index c3c26778..434bc749 100644 --- a/include/toml11/parser.hpp +++ b/include/toml11/parser.hpp @@ -616,6 +616,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