How numbers are encoded in JavaScript

added by bpwndaddy
6/19/2015 3:22:38 PM

2 Kicks, 1067 Views

All numbers in JavaScript are floating point. This blog post explains how those floating point numbers are represented internally in 64 bit binary. Special consideration will be given to integers, so that, after reading this post, you will understand what happens in the following interaction: > 9007199254740992 + 1 9007199254740992 > 9007199254740992 + 2 9007199254740994


0 comments