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.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Java
10.1k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Numeric-class
43 posts
Popular Articles
Recent Articles
Ruby | Numeric truncate() function
Last Updated: 19 March 2024
The truncate() is an inbuilt method in Ruby returns a number rounded toward zero with a precision of the given number of digits after the d
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric round() function
Last Updated: 19 March 2024
The round() is an inbuilt method in Ruby returns a number rounded to a number nearest to the given number with a precision of the given num
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric nonzero? function
Last Updated: 19 March 2024
The nonzero?() is an inbuilt method in Ruby returns self if the number is non-zero, else it returns nil.Syntax: num.nonzero?()Parameters: T
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Java
10.1k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby | Numeric infinite? function
Last Updated: 19 March 2024
The infinite?() is an inbuilt method in Ruby returns nil if the number is finite. It returns -1 and +1 if the number is -infinity or +infin
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric ceil() function
Last Updated: 19 March 2024
The ceil() is an inbuilt method in Ruby returns the smallest number which is greater than or equal to the given number by keeping a precisio
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric floor() function
Last Updated: 19 March 2024
The floor() is an inbuilt method in Ruby returns a number less than or equal to the given number with a precision of the given number of di
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric zero? function
Last Updated: 19 March 2024
The zero?() is an inbuilt method in Ruby returns a boolean value. It returns true if the number is a negative one, else it returns false. S
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric positive? function
Last Updated: 19 March 2024
The positive?() is an inbuilt method in Ruby returns a boolean value. It returns true if the number is a positive one, else it returns false
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric negative? function
Last Updated: 19 March 2024
The negative?() is an inbuilt method in Ruby returns a boolean value. It returns true if the number is a negative one, else it returns fals
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric dup() function
Last Updated: 19 March 2024
The dup() is an inbuilt method in Ruby returns the number itself.Syntax: num1.dup()Parameters: The function needs a number.Return Value: It
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric modulo() function
Last Updated: 07 January 2020
The modulo() is an inbuilt method in Ruby returns the modular value when two numbers are divided. It returns the value of a modulo b. Synta
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric + method
Last Updated: 18 January 2021
The + is an inbuilt method in Ruby returns the addition of two numbers. It returns a + b.Syntax: a + bParameters: The function needs two num
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric - method
Last Updated: 18 January 2021
The - is an inbuilt method in Ruby returns the subtraction of two numbers. It returns a - b.Syntax: a - bParameters: The function needs two
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric abs() function
Last Updated: 19 March 2024
The abs is an inbuilt method in Ruby returns the absolute value of a number.Syntax: num.absParameters: The function needs the number whose a
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
Ruby | Numeric divmod() function
Last Updated: 19 March 2024
The divmod() is an inbuilt method in Ruby returns the integer quotient and modulus after performing the division. Syntax: num1.divmod(num2)
...read more
Ruby
Ruby-Methods
Ruby Numeric-class
1
2
3
>>
Last
1
2
3
>>
Last
1
2
3
>>
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 !