Files
rose-ash/lib/js/runtime.sx
giles 42cce5e3fc
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 23s
js-on-sx: js-num-from-string uses string->number for exp-form
Was computing m * pow(10, e) for "1.2345e-3" forms; floating-point
multiplication introduced rounding (Number(".12345e-3") -
0.00012345 == 2.7e-20). The SX string->number primitive parses the
whole literal in one IEEE round, matching JS literal parsing. Falls
back to manual m * pow(10, e) only when string->number returns nil.
built-ins/Number: 42/50 → 43/50. conformance.sh: 148/148.
2026-05-07 20:47:29 +00:00

129 KiB