
N
Publisher
neclor
Limits
Tools
Limits Constants Numeric Math Functions Variant GDScript
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
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Limits
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