Class: Float

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

Constant Summary

INFINITY =
`Infinity`
NAN =
`NaN`

Class Method Summary collapse

Methods inherited from Numeric

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

Methods included from Comparable

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

Class Method Details

.===(other) ⇒ Object



436
437
438
# File 'opal/opal/corelib/numeric.rb', line 436

def self.===(other)
  `!!(other._isNumber && (other % 1) != 0)`
end