Class: Float

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

Constant Summary

INFINITY =
`Infinity`
MAX =
`Number.MAX_VALUE`
MIN =
`Number.MIN_VALUE`
NAN =
`NaN`
DIG =
15
MANT_DIG =
53
RADIX =
2
EPSILON =
`Number.EPSILON`

Class Method Summary collapse

Methods inherited from Numeric

#%, #+@, #-@, #<=>, #[], #__coerced__, #abs, #abs2, #angle, #ceil, #clone, #coerce, #conj, #denominator, #div, #divmod, #dup, #fdiv, #floor, #i, #imag, #integer?, #negative?, #nonzero?, #numerator, #polar, #positive?, #quo, #real, #real?, #rect, #round, #to_c, #to_int, #truncate, #zero?

Methods included from Comparable

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

Class Method Details

.===(other) ⇒ Object



729
730
731
# File 'opal/opal/corelib/number.rb', line 729

def self.===(other)
  `!!other.$$is_number`
end