Ruby Float magnitude() method with example
Float magnitude() is a float class method which works on float values and converts them to the absolute form. Syntax: float.magnitude() Parameter: float value which is to be converted to absolute value Return: absolute value of the passed float value Example #1: Ruby # Ruby program for magnitude() m