Why String(1e21) Prints 1e+21 but String(1e20) Prints All 21 Digits
String(1e21) gives "1e+21" . String(1e20) gives "100000000000000000000" , all 21 digits. Same code path, same type, two different renderings, and both are the same number in different clothes. console . log ( String ( 1e21 ) ) ; // 1e+21 console . log ( String ( 1e20 ) ) ; // 100000000000000000000…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-12-05 09:38 · DEV Community — AI
Why String(1e21) Prints 1e+21 but String(1e20) Prints All 21 Digits
More stories
- December 2026 open-weight wave: Qwen4, MiniMax M4 and Amazon Ergo released — Google Research Blog
- Jensen Huang admits NVIDIA AI chips were shipped to China — Engadget
- Anthropic Publishes Pretraining Loss Curve, Argues Against Loss-Based AI Pacing — Anthropic (X)
- Joint statement from Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, and Oracle on transition to post-quantum cryptography — Anthropic (X)
- Security reviews find Anthropic and OpenAI systems vulnerable to nation-state hackers — Financial Times AI
- Black Forest Labs launches FLUX 3.1 Image and FLUNG 8B language model — Hugging Face model releases
- LLMs Achieve Superhuman Progress in Verifiable Fields Like Math and Theory — Berkeley BAIR Blog
- Agent-Readiness audits score eight websites on AI agent accessibility — DEV Community — AI
Read the Daily Brief: the day's most important AI stories →