During lecture the professor talked about Integer Compare for floats and kept mentioning two's complement.

What's the relation between them?

All I understand is that two's complement can take us from a number to its negative.


IEEE 754 Floating point is a standard way of representing fractions in binary which does not use two's complement. There's a discussion here about why that is.

| cite | improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.