Skip to content

docs(llms): 1/0 warns and returns 0, not "saturates"#448

Merged
InauguralPhysicist merged 1 commit into
mainfrom
docs/llms-divzero-accuracy
Jul 5, 2026
Merged

docs(llms): 1/0 warns and returns 0, not "saturates"#448
InauguralPhysicist merged 1 commit into
mainfrom
docs/llms-divzero-accuracy

Conversation

@InauguralPhysicist

Copy link
Copy Markdown
Collaborator

The docs/llms.txt AI-onboarding cheatsheet described division by zero as "warns and saturates". Saturation (±1e308) is what overflow does — division by zero warns and returns 0 (verified: 1 / 0Warning line 1: division by zero then prints 0). This matches docs/LANGUAGE_CONTRACT.md ("division by zero warns and yields 0"). The separate, correct overflow note ("saturates at ±1e308") is untouched.

Doc-only, one line.

🤖 Generated with Claude Code

The AI-onboarding cheatsheet said `1/0` "warns and saturates". Saturation
(±1e308) is what *overflow* does; division by zero warns and returns **0**
(verified: `1 / 0` prints `Warning ... division by zero` then `0`). The
overflow "saturates at ±1e308" note elsewhere in the file is correct and
untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@InauguralPhysicist InauguralPhysicist merged commit 3964529 into main Jul 5, 2026
17 checks passed
@InauguralPhysicist InauguralPhysicist deleted the docs/llms-divzero-accuracy branch July 5, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant