Perhaps the most useful aspect of IEEE floating-point is how divide-by-zero is handled; for any positive real number a, what are the 2 rules involving division by 0?

Perhaps the most useful aspect of IEEE floating-point is how divide-by-zero is handled; for any positive real number a, what are the 2 rules involving division by 0?



1. +a / +0 = +∞

2. -a / +0 = -∞

a = f(x)
if(a > 0) {
do something
}
What does the if-statement evaluate to when:
a = +∞?
a = -∞?
a = NaN?
+∞ > 0 = true
-∞ > 0 = false
NaN > 0 = false

Popular posts from this blog

Is rotation necessary in PCA? If yes, Why? What will happen if you don't rotate the components?

After analyzing the model, your manager has informed that your regression model is suffering from multicollinearity. How would you check if he's true? Without losing any information, can you still build a better model?

What does Latency mean?