☰
Debian Codegraph
@
4.6.3+ds-2
/
/
modules
/
gdscript
/
tests
/
scripts
/
parser
/
warnings
/
integer_division.gd
☽
☼
modules/gdscript/tests/scripts/parser/warnings/integer_division.gd
code
plain
raw
Expat
2014-present, Godot Engine contributors; 2007-2014, Juan Linietsky, Ariel Manzur
debian/copyright
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