Scarpet 0/0 equality
rv3r opened this issue ยท 3 comments
0/0 -> NaN
0/0 == 1 -> true
0/0 == -1 -> true
0/0 == 2 -> true
...
3/0 -> INFINITY
0/0 == 3/0 -> true
Bug or WAI?
walk around:
you can create an function is_nan(x)
by yourself.
if type(x) is number and str(x) is NaN
Yes, this is a duplicate of #1576 I think.