![]() |
The to_int() is an inbuilt method in Ruby returns the integer part of the given number.
Example 1:
Output: 15 Example 2:
Output: -19 |
Reffered: https://www.geeksforgeeks.org
Ruby |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 9 |