Class: Float

Inherits:
Numeric show all
Defined in:
opal/opal/corelib/numeric.rb

Constant Summary

INFINITY =
`Infinity`
NAN =
`NaN`
EPSILON =
`Number.EPSILON`

Class Method Summary collapse

Methods inherited from Numeric

#%, #&, #*, #**, #+, #+@, #-, #-@, #/, #<, #<<, #<=, #<=>, #==, #>, #>=, #>>, #[], #^, #abs, #ceil, #chr, #coerce, #conj, #divmod, #downto, #even?, #finite?, #floor, #gcd, #gcdlcm, #hash, #infinite?, #instance_of?, #integer?, #is_a?, #lcm, #nan?, #negative?, #next, #nonzero?, #odd?, #ord, #positive?, #pred, #round, #send_coerced, #size, #step, #times, #to_f, #to_i, #to_s, #upto, #zero?, #|, #~

Methods included from Comparable

#<, #<=, #==, #>, #>=, #between?, normalize

Class Method Details

.===(other) ⇒ Object



516
517
518
# File 'opal/opal/corelib/numeric.rb', line 516

def self.===(other)
  `!!other._isNumber`
end