inDepth.dev
  • Our Manifesto
Subscribe
Tagged

floating-point

A collection of 2 posts

Here is what you need to know about JavaScript’s Number type
javascript

Here is what you need to know about JavaScript’s Number type

In this article I'll explain in great detail why 0.1+0.2 IS NOT equal to 0.3. We'll dive into the mechanics of floating points, explore how numbers are stored according to IEEE754 and learn some binary math.

  • Max Koretskyi
Max Koretskyi Oct 13, 2017 • 16 min read
The mechanics behind exponent bias in floating point
javascript

The mechanics behind exponent bias in floating point

Usually signed integers are stored as two’s complement. However, exponent in IEEE-754 floating point standard is stored as offset binary. This article explains the inner workings of this mechanism.

  • Max Koretskyi
Max Koretskyi Sep 18, 2016 • 5 min read
inDepth.dev © 2023
Powered by Ghost