flt.infinite? รข nil, -1, +1
Instance Public methods
Returns nil
, -1, or +1 depending on whether flt is
finite, -infinity, or +infinity.
(0.0).infinite? #=> nil (-1.0/0.0).infinite? #=> -1 (+1.0/0.0).infinite? #=> 1
Returns nil
, -1, or +1 depending on whether flt is
finite, -infinity, or +infinity.
(0.0).infinite? #=> nil (-1.0/0.0).infinite? #=> -1 (+1.0/0.0).infinite? #=> 1
Please login to continue.