Integers in JavaScript

后端 未结 5 2090
伪装坚强ぢ
伪装坚强ぢ 2020-12-01 11:25

I\'m a beginner to Javascript so forgive me if I sound dumb because I learned some Javascript from W3Fools (which are really difficult tutorials - they don\'t explain anythi

5条回答
  •  心在旅途
    2020-12-01 11:34

    I don't think it ever will support integers. It isn't a problem as every unsigned 32 bit integer can be accurately represented as a 64 bit floating point number.

    Modern JavaScript engines could be smart enough to generate special code when the numbers are integer (with safeguard checks to make sure of it), but I'm not sure.

提交回复
热议问题