x*****u 发帖数: 3419 | |
x*****u 发帖数: 3419 | |
j***y 发帖数: 2074 | 3
这只是编码方式用1's complement引起的吧。
2's complement就可以消除这个问题了。
【在 x*****u 的大作中提到】 : ieee 里面定义有正负零。
|
c*****t 发帖数: 1879 | 4 Floating point represenation still has the problem of -0.
【在 j***y 的大作中提到】 : : 这只是编码方式用1's complement引起的吧。 : 2's complement就可以消除这个问题了。
|
c********g 发帖数: 449 | 5 -0 = 1.00000
0 = 0.00000
first digit is sign.
it is 2's complement
【在 c*****t 的大作中提到】 : Floating point represenation still has the problem of -0.
|
a***x 发帖数: 26368 | 6 2's conp has -0?
【在 c********g 的大作中提到】 : -0 = 1.00000 : 0 = 0.00000 : first digit is sign. : it is 2's complement
|
c********g 发帖数: 449 | 7 -0 = 1.00000
0 = 0.00000
first digit is sign.
it is Signed Magnitude
-0 = 1.11111
0 = 0.00000
first digit is sign.
it is 1's complement
2's complement only has one zero 0.00000.
flip and add 1at last position it is 0.00000 also.
thanks alexx for reminding me
【在 a***x 的大作中提到】 : 2's conp has -0?
|