3 ms·
> Which languages did you try? Python and C#.
by da_chicken 5y ago
> Which languages did you try?
Python and C#.
- Kranar 5y agoPython does throw an exception but C# does not.
- kmm 5y agoDividing 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.