← back to v147 · math-sumprecise

conformance · v147

v147 · math-sumprecise — conformance probe

8 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.

browser: spec: https://tc39.es/proposal-math-sum/ chromestatus: #4790090146643968 generated 2026-06-05T14:30:47Z by manual-codex-devtools
0
pass
0
fail
0
blocked
8
total
id contract kind verdict detail
math-sumprecise-exists Math.sumPrecise is exposed on the global Math object. spec ↗ typeof
math-sumprecise-decimal-literals-round-to-nearest-float Math.sumPrecise([0.1, 0.2]) returns 0.30000000000000004 because the input Number values are already binary floats and the exact mathematical sum is rounded once at the end. spec ↗ script
math-sumprecise-extreme-precision Math.sumPrecise preserves tiny finite terms that naive addition loses, such as [1e20, 0.1, -1e20] returning 0.1. spec ↗ script
math-sumprecise-empty-returns-negative-zero An empty iterable passed to Math.sumPrecise returns -0. spec ↗ script
math-sumprecise-throws-on-non-number Math.sumPrecise throws a TypeError if any iterable element is not a Number. spec ↗ script
math-sumprecise-throws-on-bigint Math.sumPrecise throws a TypeError if the iterable contains a BigInt. spec ↗ script
math-sumprecise-handles-nan Math.sumPrecise propagates NaN if any input value is NaN. spec ↗ script
math-sumprecise-conflicting-infinities Math.sumPrecise returns NaN when both +Infinity and -Infinity are present. spec ↗ script