|
|
|
|
|
by liftbigweights
2756 days ago
|
|
The difference is that with fp ops, it's part of the design and understood that you should never directly compare the equality of fp numbers since they are estimates. You should check for equality of fp numbers by checking their difference according to your needs. Whereas for int ops, equality works within the limits of the design. In short equality means something different in fp by design. For int, it means what we think it means within its limits. When we overflow, then things get screwy. |
|