javascript - WebIDL defines unsigned short to JS Number type -
I read a document and it explains that the web idl defines the signed map of IDL as JS number.
The unsigned low limit ranges from 0 to 65535. JS No. 9 007199254740992 may be 9007199254740992.
It literally confuses me with a big riot between these two definitions. Can anyone explain this?
Thanks
Like Looq Faure-Lacs, JS number comparison of more unsigned miniatures Are complex in
There are some types of JS:
Undefined undefined Boolean one ???? Wrong, true number one ???? 0, -2.5, infinity, nan string one ???? "Hello" object "{{}, {" key ":" value "}, [1, 2, 3], function () {}, / ^ regexp? $ / The point present here is when you define your web idl in a number, you should keep in mind what you will need for precision and accuracy. So, if you want to do something more for storage If you are doing, declare something like an unsigned low, an unsigned int, which is up to 4,294,967,295.
Consider here javascript Pt is not dependent on types, but WebIDL (which can be translated into Python, or C, or C ++ or something).
Hope I was able to clarify your question. If not, then I would recommend that you press @heycam at irc.mozilla.org, he knows all this :).
Comments
Post a Comment