The DailyToken

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

  1. 2026-12-05 09:38 · DEV Community — AI
    Why String(1e21) Prints 1e+21 but String(1e20) Prints All 21 Digits

More stories

  1. December 2026 open-weight wave: Qwen4, MiniMax M4 and Amazon Ergo released — Google Research Blog
  2. Jensen Huang admits NVIDIA AI chips were shipped to China — Engadget
  3. Anthropic Publishes Pretraining Loss Curve, Argues Against Loss-Based AI Pacing — Anthropic (X)
  4. Joint statement from Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, and Oracle on transition to post-quantum cryptography — Anthropic (X)
  5. Security reviews find Anthropic and OpenAI systems vulnerable to nation-state hackers — Financial Times AI
  6. Black Forest Labs launches FLUX 3.1 Image and FLUNG 8B language model — Hugging Face model releases
  7. LLMs Achieve Superhuman Progress in Verifiable Fields Like Math and Theory — Berkeley BAIR Blog
  8. Agent-Readiness audits score eight websites on AI agent accessibility — DEV Community — AI

Read the Daily Brief: the day's most important AI stories →