Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Mathモジュール > log2
log2(x) -> Float
2 を底とする x の対数 (binary logarithm) を返す。