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
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
Web Technologies
39.1k+ articles
DSA
22.5k+ articles
Python
20.4k+ articles
Experiences
16.7k+ articles
Interview Experiences
14k+ articles
JavaScript
11.7k+ articles
School Learning
11.4k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Collections
130+ articles
Ruby Float-class
41 posts
Popular Articles
Recent Articles
Ruby | Float truncate function
Last Updated: 07 January 2020
Float#truncate() is a float class method which return a truncated value rounded to ndigits decimal digits precision. Syntax: float.truncate
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby | Float to_i() method
Last Updated: 07 January 2020
Float#to_i() is a float class method which return a Integer representation of the float value.Syntax: float.to_i()Parameter: float value as
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float round() method with example
Last Updated: 08 January 2020
round() is a float class method which return a float value rounded to the nearest value with n digits decimal digits precision. Syntax: flo
...read more
Ruby
Ruby-Methods
Ruby Float-class
Similar Topics
Web Technologies
39.1k+ articles
DSA
22.5k+ articles
Python
20.4k+ articles
Experiences
16.7k+ articles
Interview Experiences
14k+ articles
JavaScript
11.7k+ articles
School Learning
11.4k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Collections
130+ articles
Ruby Float coerce() method with example
Last Updated: 08 January 2020
coerce() is a float class method which return the ceil value of the passed float value.Syntax: float.coerce()Parameter: numeric values (can
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float ceil() method with example
Last Updated: 08 January 2020
ceil() is a float class method which return the ceil value of the passed float value.Syntax: float.ceil()Parameter: float value which is to
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float floor() method with example
Last Updated: 08 January 2020
floor() is a float class method which return the floor value of the passed float value.Syntax: float.floor()Parameter: float value which is
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float to_d() - BigDecimal method with example
Last Updated: 14 April 2022
Float to_d() is a float class method which return a BigDecimal representation of the float valueSyntax: float.to_d() Parameter: float value
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float absolute() method with example
Last Updated: 07 January 2020
Float abs() is a float class method which works on float values and converts them to the absolute form.Syntax: float.abs()Parameter: float v
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float to_r() method with example
Last Updated: 07 January 2020
Float to_r() is a float class method which return a rational form of the float value.Syntax: float.to_r()Parameter: float value as argument
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float divmod() method with example
Last Updated: 14 September 2021
Float divmod() is a float class method that returns an array having the quotient and remainder on dividing two numbers.Syntax: float.divmod(
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float negative() method with example
Last Updated: 07 January 2020
Float negative() is a float class method which checks whether the float value is negative. Syntax: float.negative()Parameter: float value wh
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float fdiv() method with example
Last Updated: 07 January 2020
Float fdiv() is a float class method which return a division value of the form p/q.Syntax: float.fdiv()Parameter: values to divide - p and q
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float modulo() method with example
Last Updated: 07 January 2020
Float modulo() is a float class method which return the remainder value on dividing two float values. Syntax: float.modulo()Parameter: remai
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float nan?() method with example
Last Updated: 13 January 2022
Float nan?() is a float class method that checks whether the value is 'not a number'. 'Not A Number' means an invalid IEEE floating-point nu
...read more
Ruby
Ruby-Methods
Ruby Float-class
Ruby Float zero?() method with example
Last Updated: 07 January 2020
Float#zero() : zero() is a float class method which checks whether the float value is zero. Syntax: float.zero()Parameter:float value which
...read more
Ruby
Ruby-Methods
Ruby Float-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 !