Skip to content

Integers

iaminfinityiq edited this page Feb 20, 2026 · 1 revision

int data type

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

Operators performed on int

  1. +: Addition. This can be performed on int, double, and boolean. This can also be interpreted as unary plus if used as +<value>
  2. -: Subtraction. This can be performed on int, double, and boolean. This can also be interpreted as unary minus (negation) if used as -<value>
  3. *: Multiplication. This can be performed on int, double, and boolean
  4. /: Division. This can be performed on int, double, and boolean
  5. %: Modulo (get the remainder of a division). This can be performed on int, double, and boolean. This can also be interpreted as percentage if used as <value>%
  6. ==: Acts as equality comparison
  7. !=: Reverse of ==
  8. >: Greater than. This can be performed on int, double, and boolean
  9. <: Smaller than. This can be performed on int, double, and boolean
  10. >=: Greater than or equals. This can be performed on int, double, and boolean
  11. <=: Smaller than or equals. This can be performed on int, double, and boolean

Clone this wiki locally