summaryrefslogtreecommitdiffstats
path: root/tests/jq.test
diff options
context:
space:
mode:
authoritchyny <itchyny@cybozu.co.jp>2023-08-01 09:06:12 +0900
committerNico Williams <nico@cryptonector.com>2023-08-02 00:32:32 -0500
commit680baeffeb7983e7570b5e68db07fe47f94db8c7 (patch)
treee560115131c384d1b8b74f32a2abd322a46585bd /tests/jq.test
parent27a4d5757e42d9653585eeddda78e8d313bad194 (diff)
Fix rounding small (but not too small) numbers to zero on calculation
Co-authored-by: Leonid S. Usov <leonid.s.usov@gmail.com>
Diffstat (limited to 'tests/jq.test')
-rw-r--r--tests/jq.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test
index c460f5d3..246da0fc 100644
--- a/tests/jq.test
+++ b/tests/jq.test
@@ -548,6 +548,14 @@ null
null
[2, 8, 10, 14]
+1e-19 + 1e-20 - 5e-21
+null
+1.05e-19
+
+1 / 1e-17
+null
+1e+17
+
25 % 7
null
4