Search code examples
javascriptfloating-pointnumericaldouble-precision

Does JavaScript have double floating point number precision?


I know it's an odd question, but does JavaScript have the capacity to work with double's as opposed to single floats? (64 bit floats vs. 32 bits.)


Solution

  • All numbers in JavaScript are 64-bit floating point numbers.

    Ref:

    http://www.hunlock.com/blogs/The_Complete_Javascript_Number_Reference

    http://www.crockford.com/javascript/survey.html