inDepth.dev
  • Our Manifesto
Subscribe
Tagged

binary

A collection of 3 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
How to round binary numbers
javascript

How to round binary numbers

We are all familiar with rounding numbers in decimal system. This article will teach you how to round binary numbers and explain the math behind it.

  • Max Koretskyi
Max Koretskyi Sep 26, 2016 • 7 min read
The simple math behind decimal-binary conversion algorithms
javascript

The simple math behind decimal-binary conversion algorithms

This article explains the very basic math behind four simple algorithms to convert binary to decimal: two for integer and two for fractions.

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