Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Limits

An asset by neclor
The page banner background of a mountain and forest
Limits hero image

Quick Information

0 ratings
Limits icon image
neclor
Limits

Adds constants and utility functions for numeric limits.MethodsVariant max_value_of(type: Variant.Type) staticVariant min_value_of(type: Variant.Type) staticExamplefunc example() -> void:print(Limits.INT_MAX) # Prints 9223372036854775807print(Limits.INT_MIN) # Prints -9223372036854775808print(Limits.max_value_of(typeof(123)) # Prints 9223372036854775807print(Limits.min_value_of(typeof(123))) # Prints -9223372036854775808

Supported Engine Version
4.0
Version String
1.3.0
License Version
MIT
Support Level
community
Modified Date
11 months ago
Git URL
Issue URL

Adds constants and utility functions for numeric limits.

Methods
Variant max_value_of(type: Variant.Type) static
Variant min_value_of(type: Variant.Type) static

Example
func example() -> void:
print(Limits.INT_MAX) # Prints 9223372036854775807
print(Limits.INT_MIN) # Prints -9223372036854775808
print(Limits.max_value_of(typeof(123)) # Prints 9223372036854775807
print(Limits.min_value_of(typeof(123))) # Prints -9223372036854775808

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Limits icon image
neclor
Limits

Adds constants and utility functions for numeric limits.MethodsVariant max_value_of(type: Variant.Type) staticVariant min_value_of(type: Variant.Type) staticExamplefunc example() -> void:print(Limits.INT_MAX) # Prints 9223372036854775807print(Limits.INT_MIN) # Prints -9223372036854775808print(Limits.max_value_of(typeof(123)) # Prints 9223372036854775807print(Limits.min_value_of(typeof(123))) # Prints -9223372036854775808

Supported Engine Version
4.0
Version String
1.3.0
License Version
MIT
Support Level
community
Modified Date
11 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers