mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-05-01 11:29:25 +08:00
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> |
||
|---|---|---|
| .. | ||
| chaiscript_algebraic.hpp | ||
| chaiscript_common.hpp | ||
| chaiscript_engine.hpp | ||
| chaiscript_eval.hpp | ||
| chaiscript_optimizer.hpp | ||
| chaiscript_parser.hpp | ||
| chaiscript_posix.hpp | ||
| chaiscript_prelude_docs.hpp | ||
| chaiscript_prelude.hpp | ||
| chaiscript_tracer.hpp | ||
| chaiscript_unknown.hpp | ||
| chaiscript_windows.hpp | ||