Make 0 divided by 0 results in NaN consistently (#2253)
This commit is contained in:
1 parent
dfd440f0de
commit
886a9b18b1
2 files changed
+6
-1
No files matched your search
@@ -1578,6 +1578,11 @@ try (1/.) catch .
|
||||
0
|
||||
"number (1) and number (0) cannot be divided because the divisor is zero"
|
||||
|
||||
0/0, (0 as $x | $x/0) | isnan
|
||||
0
|
||||
true
|
||||
true
|
||||
|
||||
try (1%.) catch .
|
||||
0
|
||||
"number (1) and number (0) cannot be divided (remainder) because the divisor is zero"
|
||||
|
||||
Reference in new issue
Block a user