Lesley's Digital Garden

Home

❯

Notes

❯

A double can perfectly represent all values of a 32 bit int

A double can perfectly represent all values of a 32 bit int

Mar 14, 2024

  • computing/system/DataRepresentaiton
  • computing/FloatingPointNumber

A 64-bit floating-point number (a.k.a. “double precision”) can perfectly represent all values of a 32 bit integers.

References

  • c++ - Are all integer values perfectly represented as doubles? - Stack Overflow

Graph View

Created with Quartz v4.5.2 © 2026. All notes are written in Obsidian.

  • GitHub Repository
  • Mastodon