-
Notifications
You must be signed in to change notification settings - Fork 2
Integers
iaminfinityiq edited this page Feb 20, 2026
·
1 revision
This data type represents an integer which ranges from -2^63 up to 2^63 - 1 (guaranteed at least 64 bits, may vary). This is equivalent to C++'s long long data type
-
+: Addition. This can be performed onint,double, andboolean. This can also be interpreted as unary plus if used as+<value> -
-: Subtraction. This can be performed onint,double, andboolean. This can also be interpreted as unary minus (negation) if used as-<value> -
*: Multiplication. This can be performed onint,double, andboolean -
/: Division. This can be performed onint,double, andboolean -
%: Modulo (get the remainder of a division). This can be performed onint,double, andboolean. This can also be interpreted as percentage if used as<value>% -
==: Acts as equality comparison -
!=: Reverse of== -
>: Greater than. This can be performed onint,double, andboolean -
<: Smaller than. This can be performed onint,double, andboolean -
>=: Greater than or equals. This can be performed onint,double, andboolean -
<=: Smaller than or equals. This can be performed onint,double, andboolean