From 11266ea732e2533081283290c3c865c234e79b2a Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 22 Oct 2026 15:04:43 +0000 Subject: fix(stdlib): make IS_NUM agree with STR_TO_NUM and explain conversion errors Co-Authored-By: Claude Sonnet 5.5 --- AGENTS/PITFALLS/core-language.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AGENTS') diff --git a/AGENTS/PITFALLS/core-language.md b/AGENTS/PITFALLS/core-language.md index 29c3fa4..219c0d8 100644 --- a/AGENTS/PITFALLS/core-language.md +++ b/AGENTS/PITFALLS/core-language.md @@ -30,7 +30,7 @@ source, most also by compiling and running test programs. - **`/` always yields REAL** (double FDiv), even for two INTEGERs; integer division is DIV/MOD only. - CHR returns an owning one-byte STRING, not CHAR; CHR(0) retains one NUL byte. - - STR_TO_NUM always returns REAL and uses std::stod with full-consumption checks. + - STR_TO_NUM always returns REAL and shares parseNumber (strtod, full consumption, overflow rejected) with IS_NUM. - NUM_TO_STR uses std::to_string, preserving the full signed i64 range and six fractional digits for REAL. - **`getExprTypeInfo` returns nullptr** for expressions it can't classify (null-check -- cgit v1.3.1-4-g156e