Tag Archives: Ruby Integer-class

The >> is an inbuilt method in Ruby returns the number which is shifted N times to the right. The resultant number is int(num /… Read More
The << is an inbuilt method in Ruby returns the number which is shifted N times to the left. The resultant number is num *… Read More
The <=> is an inbuilt method in Ruby returns three values -1, 0 or +1. It returns -1 if the number is less than the… Read More
The >= is an inbuilt method in Ruby returns true if the number is greater than or equal to the given number, else it returns… Read More
The % is an inbuilt method in Ruby returns the remainder after the integer division of two numbers. It returns num1 % num2. Syntax: num1… Read More
The & is an inbuilt method in Ruby returns the bitwise and of two numbers. It returns num1 & num2. Syntax: num1 & num2 Parameters:… Read More
The * is an inbuilt method in Ruby returns the multiplication of two numbers. It returns num1 * num2. Syntax: num1 * num2 Parameters: The… Read More
The > is an inbuilt method in Ruby returns true if the number is greater than the given number, else it returns false. Syntax: num1… Read More
The <= is an inbuilt method in Ruby returns true if the number is less than or equal to the given number, else it returns… Read More
The < is an inbuilt method in Ruby returns true if the number is less than the given number, else it returns false. Syntax: num1… Read More
The == is an inbuilt method in Ruby returns true if both numbers are equal, else it returns false Syntax: num1 == num2 Parameters: The… Read More
The ** is an inbuilt method in Ruby returns the a numeber raised to the power of other number. It returns num1 ^ num2. Syntax:… Read More
The / is an inbuilt method in Ruby returns the division of two numbers. It returns num1 / num2. Syntax: num1 / num2 Parameters: The… Read More
The – is an inbuilt method in Ruby returns the subtraction of two numbers. It returns num1 – num2. Syntax: num1 – num2 Parameters: The… Read More
The + is an inbuilt method in Ruby returns the addition of two numbers. It returns num1 + num2. Syntax: num1 + num2 Parameters: The… Read More