the sign is opposite of the original number

the sign is opposite of the original number
15 Replies
sunny-green
sunny-green•15mo ago
numbers? in this economy?
rival-black
rival-blackOP•15mo ago
for example n / 0 if n is more than zero is infinity, n / 0 if n is less than zero is -infinity
ryan 🪱
ryan 🪱•15mo ago
like oopsie u now have infinite ruecoins
rival-black
rival-blackOP•15mo ago
no wait dividing by -0 inverts the sign dividing by 0 doesnt
ryan 🪱
ryan 🪱•15mo ago
:moji_despair:
ryan 🪱
ryan 🪱•15mo ago
lol
No description
rival-black
rival-blackOP•15mo ago
yeah 0/0 is NaN
ryan 🪱
ryan 🪱•15mo ago
are there any other cases where 0 doesnt equal -0 like this :O
correct-apricot
correct-apricot•15mo ago
what is most buggest mod at sandboxel?
rival-black
rival-blackOP•15mo ago
Infinity/Infinity is also NaN and so is Infinity-Infinity inf+inf = inf tho
sunny-green
sunny-green•15mo ago
if it's an indeterminate form tl;dr NaN i think
rival-black
rival-blackOP•15mo ago
and the same thing happens with inf * inf
ryan 🪱
ryan 🪱•15mo ago
something about this doesnt seem right
No description
sunny-green
sunny-green•15mo ago
hmm
rival-black
rival-blackOP•15mo ago
dividing any non-zero number by -0 gives you Infinity with an opposite sign

Did you find this page helpful?