Debian Codegraph @

modules/gdscript/tests/scripts/parser/warnings/integer_division.gd

raw
1 func test():
2 # This should emit a warning.
3 var __ = 5 / 2
4
5 # These should not emit warnings.
6 __ = float(5) / 2
7 __ = 5 / float(2)
8 __ = 5.0 / 2
9 __ = 5 / 2.0
10 __ = 5.0 / 2.0