Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.5K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Ruby
1.2K+ articles
Ruby-Methods
926+ articles
Ruby Collections
144+ articles
Ruby Integer-class
49 posts
Recent Articles
Popular Articles
Ruby | Integer >> method
Last Updated: 19 March 2024
The is an inbuilt method in Ruby returns the number which is shifted N times to the right. The resultant number is int(num / (2^N)).Syntax: num NParameters: The functio...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer << function
Last Updated: 19 March 2024
The is an inbuilt method in Ruby returns the number which is shifted N times to the left. The resultant number is num * (2^N).Syntax: num NParameters: The function acce...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer <=> function
Last Updated: 19 March 2024
The = is an inbuilt method in Ruby returns three values -1, 0 or +1. It returns -1 if the number is less than the given number, 0 if both are same, 1 if it is greater tha...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer >= function
Last Updated: 19 March 2024
The = is an inbuilt method in Ruby returns true if the number is greater than or equal to the given number, else it returns false. Syntax: num1 = num2Parameters: The func...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer % method
Last Updated: 18 December 2019
The % is an inbuilt method in Ruby returns the remainder after the integer division of two numbers. It returns num1 % num2. Syntax: num1 % num2Parameters: The function ac...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer & method
Last Updated: 18 December 2019
The is an inbuilt method in Ruby returns the bitwise and of two numbers. It returns num1 num2. Syntax: num1 num2Parameters: The function accepts no parameter.Return Va...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer * method
Last Updated: 18 December 2019
The * is an inbuilt method in Ruby returns the multiplication of two numbers. It returns num1 * num2. Syntax: num1 * num2Parameters: The function accepts no parameter.Ret...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer > method
Last Updated: 19 March 2024
The is an inbuilt method in Ruby returns true if the number is greater than the given number, else it returns false. Syntax: num1 num2Parameters: The function accepts n...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer <= method
Last Updated: 19 March 2024
The = is an inbuilt method in Ruby returns true if the number is less than or equal to the given number, else it returns false. Syntax: num1 = num2Parameters: The functio...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer < method
Last Updated: 19 March 2024
The is an inbuilt method in Ruby returns true if the number is less than the given number, else it returns false. Syntax: num1 num2Parameters: The function accepts no p...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer == method
Last Updated: 19 March 2024
The == is an inbuilt method in Ruby returns true if both numbers are equal, else it returns falseSyntax: num1 == num2Parameters: The function accepts no parameter.Return ...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer ** method
Last Updated: 19 March 2024
The ** is an inbuilt method in Ruby returns the a number raised to the power of other number. It returns num1 ^ num2. Syntax: num1 ** num2Parameters: The function accepts...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer / method
Last Updated: 19 March 2024
The / is an inbuilt method in Ruby returns the division of two numbers. It returns num1 / num2. Syntax: num1 / num2Parameters: The function accepts no parameter.Return Va...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer - function
Last Updated: 06 January 2020
The - is an inbuilt method in Ruby returns the subtraction of two numbers. It returns num1 - num2. Syntax: num1 - num2Parameters: The function accepts no parameter.Return...
read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby | Integer + method
Last Updated: 06 January 2020
The + is an inbuilt method in Ruby returns the addition of two numbers. It returns num1 + num2. Syntax: num1 + num2Parameters: The function accepts no parameter.Return Va...
read more
Ruby
Ruby-Methods
Ruby Integer-class
1
2
3
4
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !