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.__op_and__(rhs)
: Return the bitwise AND of two numbers.rhs
: The number to perform the operation with.__op_divide__(rhs)
: Divides two numbers.rhs
: The number to divide with the current number.__op_equals__(rhs)
: Returns true if the current number is equal to the given number.rhs
: The number to compare to.__op_geq__(rhs)
: Returns true if the current number is greater than or equal to the given number.rhs
: The number to compare to.__op_gt__(rhs)
: Returns true if the current number is greater than the given number.rhs
: The number to compare to.__op_leq__(rhs)
: Returns true if the current number is less than or equal to the given number.rhs
: The number to compare to.__op_lshift__(bits)
: Left-shift current number by given number of bits.bits
: The number of bits to shift the current number by.__op_lt__(rhs)
: Returns true if the current number is less than the given number.rhs
: The number to compare to.__op_minus__(rhs)
: Subtract two numbers.rhs
: The number to subtract from the current number.__op_mod__(rhs)
: Returns the modulus of two numbers.rhs
: The number to divide with the current number.__op_multiply__(rhs)
: Multiplies two numbers.rhs
: The number to multiply to the current number.__op_nequals__(rhs)
: Returns true if the current number is not equal to the given number.rhs
: The number to compare to.__op_not__(rhs)
: Returns the bitwise inverse of the current number.rhs
: Ignored.__op_or__(rhs)
: Return the bitwise OR of two numbers.rhs
: The number to perform the operation with.__op_plus__(rhs)
: Adds two numbers.rhs
: The number to add to the current number.__op_rshift__(bits)
: Right-shift current number by given number of bits.bits
: The number of bits to shift the current number by.__op_unminus__(rhs)
: Inverts the given number's sign, then returns the result.rhs
: Ignored.__op_unplus__(rhs)
: Returns the given number made positive.rhs
: Ignored.__op_xor__(rhs)
: Return the bitwise XOR of two numbers.rhs
: The number to perform the operation with.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.