![]() |
Float prev_float() is a float class method which returns the previous representation of the floating point number.
Example #1:
Output : previous Floating Point Number : 8.666666666666664 previous Floating Point Number : 8.099899999999998 previous Floating Point Number : 108.00299999999999 Example #2:
Output : previous Floating Point Number : 26.000000000000004 previous Floating Point Number : 7.999999999999999 |
Reffered: https://www.geeksforgeeks.org
Ruby |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 9 |