Type: int - Paramecium13/LSN GitHub Wiki

The int type represents a 32-bit signed integer. It supports all the arithmetic operations, but does not currently support bitwise operations.

Operations

  • Addition: Adds two integers. Uses the '+' symbol.
  • Subtraction: Subtracts one integer from another. Uses the '-' symbol.
  • Multiplication: Multiplies two integers. Uses the '*' symbol.
  • Division: Divides one integer by another, producing an integer and ignoring any remainder. Uses the '/' symbol.
  • Modulo: Calculates the remainder of dividing one integer by another. Uses the '%' symbol.
  • Exponentiation: Raises one integer to the power of another integer. Uses the '^' symbol.

Methods

  • Abs: Returns the absolute value.