leftibot 6517bb38a7 Fix #378: Replace hand-rolled number parsing with std::from_chars
The custom parse_num floating-point implementation produced slightly
different results from the C++ compiler's own literal parsing (e.g.
1.1e-4 was off by a few ULPs). Replace it with std::from_chars which
is locale-independent and matches compiler precision exactly. Also
migrate integer parsing in buildInt from std::stoll/stoull to
std::from_chars, fix the JSON number parser to pass the full numeric
string to from_chars instead of splitting mantissa/exponent and using
std::pow, and update parse_string to use from_chars for arithmetic types.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 18:25:47 -06:00
..
dispatchkit Fix #378: Replace hand-rolled number parsing with std::from_chars 2026-04-11 18:25:47 -06:00
language Fix #378: Replace hand-rolled number parsing with std::from_chars 2026-04-11 18:25:47 -06:00
utility Fix #378: Replace hand-rolled number parsing with std::from_chars 2026-04-11 18:25:47 -06:00
chaiscript_basic.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_defines.hpp Fix #378: Replace hand-rolled number parsing with std::from_chars 2026-04-11 18:25:47 -06:00
chaiscript_stdlib.hpp Fix #146: Add configuration to bypass the registering of 'built-in' functions. (#642) 2026-04-11 16:49:13 -06:00
chaiscript_threading.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript.hpp Fix #146: Add configuration to bypass the registering of 'built-in' functions. (#642) 2026-04-11 16:49:13 -06:00