LoginSignup
8
7

More than 5 years have passed since last update.

JavaScriptで数値を整数に変換する

Posted at

たまに間違うのでメモ

方法 範囲
x|0 int32 -2147483648 ~ 2147483647
x >>> 0 uint32 0 ~ 4294967295
Math.round(x) double -9007199254740991 ~ 9007199254740991
8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7