本文简要介绍ruby语言中  Float.self ** other  的用法。
用法
self ** other → numeric
将 self 提升到 other 的幂:
f = 3.14
f ** 2              # => 9.8596
f ** -2             # => 0.1014239928597509
f ** 2.1            # => 11.054834900588839
f ** Rational(2, 1) # => 9.8596
f ** Complex(2, 0)  # => (9.8596+0i)
相关用法
- Ruby Float.self * other用法及代码示例
 - Ruby Float.self - other用法及代码示例
 - Ruby Float.self / other用法及代码示例
 - Ruby Float.self < other用法及代码示例
 - Ruby Float.self % other用法及代码示例
 - Ruby Float.self >用法及代码示例
 - Ruby Float.self + other用法及代码示例
 - Ruby Float.self >=用法及代码示例
 - Ruby Float.self ==用法及代码示例
 - Ruby Float.self <=>用法及代码示例
 - Ruby Float.self <=用法及代码示例
 - Ruby Float.rationalize用法及代码示例
 - Ruby Float.truncate用法及代码示例
 - Ruby Float.quo用法及代码示例
 - Ruby Float.finite?用法及代码示例
 - Ruby Float.coerce用法及代码示例
 - Ruby Float.numerator用法及代码示例
 - Ruby Float.nan?用法及代码示例
 - Ruby Float.to_int用法及代码示例
 - Ruby Float.fdiv用法及代码示例
 - Ruby Float.next_float用法及代码示例
 - Ruby Float.eql?用法及代码示例
 - Ruby Float.to_d用法及代码示例
 - Ruby Float.to_i用法及代码示例
 - Ruby Float.modulo用法及代码示例
 
注:本文由纯净天空筛选整理自ruby-lang.org大神的英文原创作品 Float.self ** other。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
