Unsigned Integer in Javascript

前端 未结 6 881
梦谈多话
梦谈多话 2020-11-27 03:28

I\'m working on a page that processes IP address information, but it\'s choking on the fact that integers are signed. I am using bitwise operators to speed it up, but the 64

6条回答
  •  旧巷少年郎
    2020-11-27 03:55

    Javascript doesn't have integers, all numbers are actually doubles.

    The Javascript 1.5 Reference by Mozilla suggests that one can only use bitwise-operations safely for 32 bit numbers.

提交回复
热议问题