CodeArchaeology
  • Home
  • Languages
  • Encyclopedia
  • Blog
  • Getting Docker
  • About

Floating-Point

Why 0.1 + 0.2 ≠ 0.3: How Programming Languages Handle Numbers Differently

January 26, 2026 programming-languagesnumeric-precisionfloating-pointcoboljavascriptpython

Open your browser’s developer console right now and type 0.1 + 0.2. Go ahead, I’ll wait.

You expected 0.3, didn’t you? Instead, you got:

0.30000000000000004

This isn’t a …

Read more →

CodeArchaeology

Exploring programming languages from the popular to the obscure - proving they all still run on modern machines

Quick Links

  • Home
  • Languages
  • Encyclopedia
  • Blog
  • Getting Docker
  • About

Recent Languages

  • AWK
  • SNOBOL
  • Raku
  • Dylan
  • Perl

© 2026 CodeArchaeology. All rights reserved.

Built with Hugo | Examples on GitHub