Javascript - Integer

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > ECMAScript - Grammar Standard

1 - About

Integer aren't implemented in javascript, only double exists. See Javascript - Number

With integers, you have to take care that all calculations fit within the range between –2^53 and 2^53, but you don’t have to worry about rounding errors.

3 - Be careful

There is no integer in a javascript.

var myNumber = 0.1 + 0.2 
 
console.log("myNumber is not 0.3 but " + myNumber)

Advertising
web/javascript/es/integer.txt · Last modified: 2019/02/16 17:40 by gerardnico