==

flt == obj â true or false Instance Public methods Returns true only if obj has the same value as flt. Contrast this with Float#eql?, which requires obj to be a Float. The result of NaN == NaN is undefined, so the implementation-dependent value is returned. 1.0 == 1 #=> true

<=>

float real â -1, 0, +1 or nil Instance Public methods Returns -1, 0, +1 or nil depending on whether float is less than, equal to, or greater than real. This is the basis for the tests in Comparable. The result of NaN <=> NaN is undefined, so the implementation-dependent value is returned. nil is returned if the two values are incomparable.

&lt;=

flt Instance Public methods true if flt is less than or equal to real. The result of NaN <= NaN is undefined, so the implementation-dependent value is returned.

&lt;

flt Instance Public methods true if flt is less than real. The result of NaN < NaN is undefined, so the implementation-dependent value is returned.

/ 2

float / other â float Instance Public methods Returns a new float which is the result of dividing float by other.

-@

-float â float Instance Public methods Returns float, negated.

-

float - other â float Instance Public methods Returns a new float which is the difference of float and other.

+

float + other â float Instance Public methods Returns a new float which is the sum of float and other.

**

**(other) Instance Public methods Exponentiate by other power!

*

float * other â float Instance Public methods Returns a new float which is the product of float and other.