Skip to content

Commit 53c8ff9

Browse files
authored
fix(operator): 32ビットの範囲を修正 (#1331)
1 parent 82965e3 commit 53c8ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/basic/operator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ console.log(43 <= 42); // => false
510510

511511
<!-- textlint-disable ja-technical-writing/sentence-length -->
512512

513-
符号付き32ビット整数で表現できる数値の範囲は、`0111_1111_1111_1111_1111_1111_1111_1111`から`1111_1111_1111_1111_1111_1111_1111_1111`までとなります
513+
符号付き32ビット整数で表現できる数値の範囲は、`1000_0000_0000_0000_0000_0000_0000_0000`から`0111_1111_1111_1111_1111_1111_1111_1111`からまでとなります
514514
10進数に直すと`-(2^31)`(2の31乗の負の数)から `(2^31) - 1`(2の31乗から1引いた数)までとなります。
515515
32ビットを超える数値については、32ビットをはみ出るビットが最上位(一番左)から順番に捨てられます。
516516

0 commit comments

Comments
 (0)