Skip to content

Commit 0dd0deb

Browse files
committed
Add extra arity to round
1 parent 5910ef5 commit 0dd0deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_editor/lang/stdenv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def change_file_ext(a, ext) -> str:
10451045
# reals
10461046
"pow": Proc("pow", pow, (2, 2), is_real),
10471047
"abs": Proc("abs", abs, (1, 1), is_real),
1048-
"round": Proc("round", round, (1, 1), is_real),
1048+
"round": Proc("round", round, (1, 2), is_real, is_int),
10491049
"max": Proc("max", lambda *v: max(v), (1, None), is_real),
10501050
"min": Proc("min", lambda *v: min(v), (1, None), is_real),
10511051
"max-seq": Proc("max-seq", max, (1, 1), is_sequence),

0 commit comments

Comments
 (0)