4 ms·
IEEE754 uses sign-magnitude, not 1's-complement. It doesn't use any sort of complementation. Edit: Also, it looks like posits also use sign-magnitude and not
by Sniffnoy 4y ago
IEEE754 uses sign-magnitude, not 1's-complement. It doesn't use any sort of complementation.
Edit: Also, it looks like posits also use sign-magnitude and not 2's-complement? I am confused as to where you are getting this from. [Edit again: I was wrong about this, see below.]
- loicd 4y agoYes, sign-magnitude is the right terminology, my mistake, but too late to edit. As for two's complement, look at slide 18-19 from the link somebody produced below: https://posithub.org/conga/2019/docs/13/1430-John-Introductory.pdf https://posithub.org/conga/2019/docs/13/1430-John-Introducto...
- Sniffnoy 4y agoHm, they do indeed use 2's-complement... sort of. In case of a negative posit, they don't apply 2's-complement to the mantissa or anything like that, but rather to the entire posit without regard to the meaning of the bits. That's... kind of surprising, huh! Although it's not the first number format to do that. But it is a sort of 2's-complement, yes...
- loicd 4y agoThe idea is that you can reuse instructions for signed integer comparisons. This is explicitely mentioned in the standard, section 5.3: https://posithub.org/docs/posit_standard-2.pdf https://posithub.org/docs/posit_standard-2.pdf
- deleted 4y ago[deleted]