4 ms·
Dividing 1.0 by 0.0 gives ∞ in C# as well when I try it.
by kmm 5y ago
Dividing 1.0 by 0.0 gives ∞ in C# as well when I try it.
- da_chicken 5y agoYou're right. I must've divided 0 by 0 and -0. That's the only way C# gives me NaN. I thought I'd specifically avoided doing that.