denominator

flo.denominator â integer Instance Public methods Returns the denominator (always positive). The result is machine dependent. See numerator.

dclone

dclone() Instance Public methods provides a unified clone operation, for REXML::XPathParser to use across multiple Object types

coerce

flt.coerce(numeric) â array Instance Public methods Returns an array with both aNumeric and flt represented as Float objects. This is achieved by converting aNumeric to a Float. 1.2.coerce(3) #=> [3.0, 1.2] 2.5.coerce(1.1) #=> [1.1, 2.5]

ceil

flt.ceil â integer Instance Public methods Returns the smallest Integer greater than or equal to flt. 1.2.ceil #=> 2 2.0.ceil #=> 2 (-1.2).ceil #=> -1 (-2.0).ceil #=> -2

arg

flo.arg â 0 or float Instance Public methods Returns 0 if the value is positive, pi otherwise.

angle

flo.angle â 0 or float Instance Public methods Returns 0 if the value is positive, pi otherwise.

abs

flt.abs â float Instance Public methods Returns the absolute value of flt. (-34.56).abs #=> 34.56 -34.56.abs #=> 34.56

>=

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

>

flt > real â true or false Instance Public methods true if flt is greater than real. The result of NaN > NaN is undefined, so the implementation-dependent value is returned.

===

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