![]() |
Float magnitude() is a float class method which works on float values and converts them to the absolute form.
Example #1:
Output : magnitude value of a : 56.23333333 magnitude value of b : 10000.0 magnitude value of c : 29.1 Example #2:
Output : magnitude value of a : 111.10000000000001 magnitude value of b : 200000.0 magnitude value of c : 116.4 |
Reffered: https://www.geeksforgeeks.org
Ruby |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 8 |