should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
# name: test/sql/function/numeric/test_mod.test
# description: Mod test
# group: [numeric]
statement ok
CREATE TABLE modme(a DOUBLE, b INTEGER)
statement ok
INSERT INTO modme VALUES (42.123456, 3)
query R
select mod(a, 40) from modme
----
2.123456
# mod 0 results in NULL: SQLite behavior
query I
select mod(42, 0)
----
NULL
query R
select mod(a, 2) from modme
----
0.123456
query R
select mod(b, 2.1) from modme
----
0.900000