Skip to content
Courses
DSA to Development
Machine Learning & Data Science
Generative AI & ChatGPT
Become AWS Certified
DSA Courses
Data Structure & Algorithm(C++/JAVA)
Data Structure & Algorithm(Python)
Data Structure & Algorithm(JavaScript)
Programming Languages
CPP
Java
Python
JavaScript
C
All Courses
Tutorials
Python Tutorial
Taking Input in Python
Python Operators
Python Data Types
Python Loops and Control Flow
Python Conditional Statements
Python Loops
Python Functions
Python OOPS Concept
Python Data Structures
Python Exception Handling
Python File Handling
Python Exercises
Java
Learn Java Programming Language
Java Collections
Java 8 Tutorial
Java Programs
Java Interview Questions
Java Interview Questions
Core Java Interview Questions-Freshers
Java Multithreading Interview Questions
OOPs Interview Questions and Answers
Java Exercises
Java Quiz
Java Quiz
Core Java MCQ
Java Projects
Advance Java
Spring Tutorial
Spring Boot Tutorial
Spring Boot Interview Questions
Spring MVC Tutorial
Spring MVC Interview Questions
Hibernate Tutorial
Hibernate Interview Questions
Programming Languages
JavaScript
C++
R Tutorial
SQL
PHP
C#
C
Scala
Perl
Go Language
Kotlin
System Design
System Design Tutorial
Software Design Patterns
System Design Roadmap
Top 10 System Design Interview Questions and Answers
Interview Corner
Company Preparation
Top Topics
Practice Company Questions
Interview Experiences
Experienced Interviews
Internship Interviews
Competitive Programming
Multiple Choice Quizzes
Aptitude for Placements
Computer Science Subjects
Operating System
DBMS
Computer Networks
Engineering Mathematics
Computer Organization and Architecture
Theory of Computation
Compiler Design
Digital Logic
Software Engineering
DevOps
GIT
AWS
Docker
Kubernetes
Microsoft Azure Tutorial
Google Cloud Platform
Linux
Linux Tutorial
Linux Commands A-Z
Linux Commands Cheatsheet
File Permission Commands
Linux System Administration
Linux File System
Linux Shell Scripting
Linux Networking
Linux Interview Questions
Software Testing
Software Testing Tutorial
Software Engineering Tutorial
Testing Interview Questions
Jira
Databases
DBMS Tutorial
SQL Tutorial
PostgreSQL Tutorial
MongoDB Tutorial
SQL Interview Questions
MySQL Interview Questions
PL/SQL Interview Questions
Android
Android Tutorial
Android Studio Tutorial
Kotlin For Android
Android Projects
Android Interview Questions
6 Weeks of Android App Development
Excel
MS Excel Tutorial
Introduction to MS Excel
Data Analysis in Excel
Basic Excel Formulas & Functions
Data Analysis in Advanced Excel
Workbooks
Statistical Functions
Data Visualization in Excel
Pivot Tables in Excel
Excel Spreadsheets in Python
Basic Excel Shortcuts
Mathematics
Number System
Algebra
Linear Algebra
Trigonometry
Set Theory
Statistics
Probability
Geometry
Mensuration
Logarithms
Calculus
DSA
Data Structures
Arrays
Matrix
Strings
Linked List
Stack
Queue
Tree
Heap
Hashing
Graph
Set Data Structure
Map Data Structure
Advanced Data Structure
Data Structures Tutorial
Algorithms
Analysis of Algorithms
Design and Analysis of Algorithms
Asymptotic Analysis
Asymptotic Notations
Worst, Average and Best Cases
Searching Algorithms
Linear Search
Binary Search
Searching Algorithms Tutorial
Sorting Algorithms
Selection Sort
Bubble Sort
Insertion Sort
Merge Sort
Quick Sort
Heap Sort
Counting Sort
Radix Sort
Bucket Sort
Sorting Algorithms Tutorial
Greedy Algorithms
Dynamic Programming
Graph Algorithms
Pattern Searching
Recursion
Backtracking
Divide and Conquer
Mathematical Algorithms
Geometric Algorithms
Bitwise Algorithms
Randomized Algorithms
Branch and Bound
Algorithms Tutorial
DSA Tutorial
Practice
All DSA Problems
Problem of the Day
Company Wise Coding Practice
Amazon
Microsoft
Flipkart
Explore All
GfG SDE Sheet
Practice Problems Difficulty Wise
School
Basic
Easy
Medium
Hard
Language Wise Coding Practice
CPP
Java
Python
Curated DSA Lists
Beginner's DSA Sheet
Top 50 Array Problems
Top 50 String Problems
Top 50 DP Problems
Top 50 Graph Problems
Top 50 Tree Problems
Competitive Programming
Company Wise SDE Sheets
Facebook SDE Sheet
Amazon SDE Sheet
Apple SDE Sheet
Netflix SDE Sheet
Google SDE Sheet
DSA Cheat Sheets
SDE Sheet
DSA Sheet for Beginners
FAANG Coding Sheet
Product-Based Coding Sheet
Company-Wise Preparation Sheet
Top Interview Questions
Puzzles
All Puzzles
Top 100 Puzzles Asked In Interviews
Top 20 Puzzles Commonly Asked During SDE Interviews
Data Science
Python Tutorial
R Tutorial
Machine Learning
Data Science using Python
Data Science using R
Data Science Packages
Pandas Tutorial
NumPy Tutorial
Data Visualization
Python Data Visualization Tutorial
Data Visualization with R
Data Analysis
Data Analysis with Python
Data Analysis with R
Deep Learning
NLP Tutorial
Web Tech
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
PHP Tutorial
ReactJS Tutorial
NodeJS Tutorial
Bootstrap Tutorial
Typescript
Web Development Using Python
Django
Django Tutorial
Django Projects
Django Interview Questions
Flask
Flask Tutorial
Flask Projects
Flask Interview Questions
Postman
Github
Cheat Sheets
HTML Cheat Sheet
CSS Cheat Sheet
JavaScript Cheat Sheet
React Cheat Sheet
Angular Cheat Sheet
jQuery Cheat Sheet
Bootstrap Cheat Sheet
Learn Complete Web Development
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
▲
Similar Topics
Web Technologies
40.9k+ articles
DSA
22.3k+ articles
Python
20k+ articles
Experiences
16.9k+ articles
Interview Experiences
13.5k+ articles
School Learning
12.9k+ articles
JavaScript
11.8k+ 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.9k+ articles
DSA
22.3k+ articles
Python
20k+ articles
Experiences
16.9k+ articles
Interview Experiences
13.5k+ articles
School Learning
12.9k+ articles
JavaScript
11.8k+ 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 !