Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.3k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.7k+ articles
JavaScript
11.5k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Collections
130+ articles
Ruby Integer-class
49 posts
Popular Articles
Recent Articles
Ruby | Integer upto() function
Last Updated: 04 December 2020
The upto function in Ruby returns all the numbers from a given to number itself. It iterates the given block, passing in increasing values f
...read more
Ruby
Ruby-Methods
Ruby Collections
Ruby Integer-class
Ruby Integer remainder() function with example
Last Updated: 03 December 2020
The remainder() function in Ruby returns the remainder when two numbers are divided.Syntax: (number1).remainder(number2)Parameter: The funct
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer prime? function with example
Last Updated: 03 December 2020
The prime? function in Ruby returns a boolean value. It returns true if the number is prime, else it returns false. It requires the 'prime'
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Similar Topics
Web Technologies
40.3k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.7k+ articles
JavaScript
11.5k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Collections
130+ articles
Ruby Integer to_s function with example
Last Updated: 03 December 2020
The to_s function in Ruby returns a string containing the place-value representation of int with radix base (between 2 and 36). If no base i
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer to_i function with example
Last Updated: 07 January 2020
The to_i function in Ruby converts the value of the number to int. If the number itself is an int, it returns self only. Syntax: number.to_i
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer to_f function with example
Last Updated: 07 January 2020
The to_f function in Ruby converts the value of the number as a float. If it does not fit in float, then it returns infinity. Syntax: number
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer times function with example
Last Updated: 17 March 2020
The times function in Ruby returns all the numbers from 0 to one less than the number itself. It iterates the given block, passing in increa
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer gcd() function with example
Last Updated: 07 January 2020
The gcd() function in Ruby returns the gcd of two numbers. GCD signifies the greatest common divisor which divides both the numbers. Syntax:
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer fdiv() function with example
Last Updated: 24 June 2020
The fdiv() function in Ruby returns the floating point result after division of two numbers. Syntax: (number1).fdiv(number2)Parameter: The f
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer div() function with example
Last Updated: 25 June 2020
The div() function in Ruby returns the integer division of two numbers. Syntax: (number1).div(number2)Parameter: The function needs two numb
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer odd? function with example
Last Updated: 07 January 2020
The odd? function in Ruby returns a boolean value. It returns true if the number is odd, else it returns false. Syntax: number.odd? Paramet
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer even? function with example
Last Updated: 24 June 2020
The even? function in Ruby returns a boolean value. It returns true if the number is even, else it returns false. Syntax: number.even? Para
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer divmod() function with example
Last Updated: 24 June 2020
The divmod() function in Ruby returns integer division value and the remainder. Syntax: (number1).divmod(number2)Parameter: The function tak
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer downto() function with example
Last Updated: 07 January 2020
The downto() function in Ruby returns all the numbers less than equal to number and greater than equal to limit. It iterates the given block
...read more
Ruby
Ruby-Methods
Ruby Integer-class
Ruby Integer abs() function with example
Last Updated: 09 January 2020
The abs() function in Ruby returns the absolute value of the integer. Syntax: (number).abs Parameter: The function takes the integer whose
...read more
Ruby
Ruby-Methods
Ruby Integer-class
1
2
3
4
>>
Last
1
2
3
4
>>
Last
1
2
3
4
>>
Last
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 !