We're sorry but floating-point-number-demo doesn't work properly without JavaScript enabled. Please enable it to continue.
精度
単精度
倍精度
値
バイナリ表現
(ビッグエンディアン)
符号部
(1bit)
指数部
(8bit)
仮数部
(23bit)
0
0
1
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
指数表記
x
=
(
−
1
)
0
×
2
(
1111111
)
2
−
127
×
(
1.01000000000000000000000
)
2
=
1
×
2
127
−
127
×
(
1
+
2
−
2
)
\begin{aligned}x &= (-1)^0\times2^{(1111111)_2 - 127}\times(1.01000000000000000000000)_2 \\&=1\times2^{127 - 127}\times(1 + 2^{-2})\end{aligned}
x
=
(
−
1
)
0
×
2
(
1
1
1
1
1
1
1
)
2
−
1
2
7
×
(
1
.
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
)
2
=
1
×
2
1
2
7
−
1
2
7
×
(
1
+
2
−
2
)