本文简要介绍ruby语言中  Float.finite?  的用法。
用法
finite? → true or false
如果 self 不是 Infinity 、 -Infinity 或 Nan 、 false 则返回 true 否则:
f = 2.0      # => 2.0
f.finite?    # => true
f = 1.0/0.0  # => Infinity
f.finite?    # => false
f = -1.0/0.0 # => -Infinity
f.finite?    # => false
f = 0.0/0.0  # => NaN
f.finite?    # => false
相关用法
- Ruby Float.fdiv用法及代码示例
 - Ruby Float.floor用法及代码示例
 - Ruby Float.self - other用法及代码示例
 - Ruby Float.rationalize用法及代码示例
 - Ruby Float.truncate用法及代码示例
 - Ruby Float.quo用法及代码示例
 - Ruby Float.self / other用法及代码示例
 - Ruby Float.coerce用法及代码示例
 - Ruby Float.self < other用法及代码示例
 - Ruby Float.numerator用法及代码示例
 - Ruby Float.nan?用法及代码示例
 - Ruby Float.to_int用法及代码示例
 - Ruby Float.self % other用法及代码示例
 - Ruby Float.self >用法及代码示例
 - Ruby Float.next_float用法及代码示例
 - Ruby Float.eql?用法及代码示例
 - Ruby Float.to_d用法及代码示例
 - Ruby Float.to_i用法及代码示例
 - Ruby Float.self + other用法及代码示例
 - Ruby Float.self >=用法及代码示例
 - Ruby Float.self ** other用法及代码示例
 - Ruby Float.modulo用法及代码示例
 - Ruby Float.self ==用法及代码示例
 - Ruby Float.self * other用法及代码示例
 - Ruby Float.abs用法及代码示例
 
注:本文由纯净天空筛选整理自ruby-lang.org大神的英文原创作品 Float.finite?。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
