Flowdock
method

log2

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Math
log2(p1) public

Returns the base 2 logarithm of numeric.

Math.log2(1)      #=> 0.0
Math.log2(2)      #=> 1.0
Math.log2(32768)  #=> 15.0
Math.log2(65536)  #=> 16.0
Show source
Register or log in to add new notes.