Make 0 divided by 0 results in NaN consistently (#2253)

This commit is contained in:
itchyny authored and GitHub committed 2023-07-05 04:28:08 +09:00
1 parent dfd440f0de
commit 886a9b18b1
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -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"