![]() |
Float numerator() is a float class method which return a float value as the numerator value for p/q form.
Example #1:
Output : numerator : 2 Division int/float : 0.5 Division float/float : 0.5 Example #2:
Output : numerator : 0 Division int/float : 0.0 Division float/float : 0.0 |
Reffered: https://www.geeksforgeeks.org
Ruby |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 10 |