Files
godot/modules/gdscript/tests/scripts/runtime/features/range_large_ints.gd
noahbackus 9d30169a8d
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
initial commit, 4.5 stable
2025-09-16 20:46:46 -04:00

14 lines
450 B
GDScript

func test():
# GH-109376
# Note: unlike "for range", which is iterated in place, this helper function generates an array of all values in range.
var result
result = range(2147483640, 2147483647) # Range below 32-bit size limit.
print(result)
result = range(2147483640, 2147483647 + 1) # Range 1 over 32-bit size limit.
print(result)
result = range(9922147483640, 9922147483647) # Range significantly over 32-bit size limit.
print(result)