News for hackers. Stuff that matters.
Re:One does not simply calculate the absolute value by kmm on Sunday August 22, 2021 @03:57PM (#28268993)
Dividing 1.0 by 0.0 gives ∞ in C# as well when I try it.
Re:One does not simply calculate the absolute value by da_chicken on Sunday August 22, 2021 @04:03PM (#28269042)
You'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.