/ tech blog

Precision Floating Point

Somebody please explain this to me. It's simple math.

<center>

```

6.0 / 5.0 * 24

```

</center>

What result do you expect? Let NodeJS, Python 2.7 and Java 7 tell you.

![NodeJS](/content/images/2015/11/Screen-Shot-2015-11-30-at-14-48-51.png)

![Python](/content/images/2015/11/Screen-Shot-2015-11-30-at-14-54-46.png)

![Java](/content/images/2015/11/Screen-Shot-2015-11-30-at-15-27-45.png)

Tweet to me [@giakhanh2487](https://twitter.com/giakhanh2487). Please, I need an explanation.

Precision Floating Point
Share this