Class representing integer objects.
operator +(rhs)
: Adds two numbers.rhs
: The number to add to the current number.operator -(rhs)
: Subtract two numbers.rhs
: The number to subtract from the current number.operator *(rhs)
: Multiplies two numbers.rhs
: The number to multiply to the current number.operator /(rhs)
: Divides two numbers.rhs
: The number to divide with the current number.operator %(rhs)
: Returns the modulus of two numbers.rhs
: The number to divide with the current number.operator unary +(rhs)
: Returns the given number made positive.rhs
: Ignored.operator unary -(rhs)
: Inverts the given number's sign, then returns the result.rhs
: Ignored.operator ==(rhs)
: Returns true if the current number is equal to the given number.rhs
: The number to compare to.operator !=(rhs)
: Returns true if the current number is not equal to the given number.rhs
: The number to compare to.operator <(rhs)
: Returns true if the current number is less than the given number.rhs
: The number to compare to.operator >(rhs)
: Returns true if the current number is greater than the given number.rhs
: The number to compare to.operator <=(rhs)
: Returns true if the current number is less than or equal to the given number.rhs
: The number to compare to.operator >=(rhs)
: Returns true if the current number is greater than or equal to the given number.rhs
: The number to compare to.operator and(rhs)
: Return the bitwise AND of two numbers.rhs
: The number to perform the operation with.operator or(rhs)
: Return the bitwise OR of two numbers.rhs
: The number to perform the operation with.operator not(rhs)
: Returns the bitwise inverse of the current number.rhs
: Ignored.operator xor(rhs)
: Return the bitwise XOR of two numbers.rhs
: The number to perform the operation with.operator <<(bits)
: Left-shift current number by given number of bits.bits
: The number of bits to shift the current number by.operator >>(bits)
: Right-shift current number by given number of bits.bits
: The number of bits to shift the current number by.bool()
: Returns Boolean representation of current object.float()
: Returns floating-point representation of current object.int()
: Returns integer representation of current object.parse(str, base)
: Returns integer extracted from string.str
: String to parse.base
: The base the number is in.str()
: Returns string representation of current object.