JanetDocsPlaygroundI'm feeling luckyGitHub sign in

math/log2



    cfunction
    src/core/math.c on line 281, column 1

    (math/log2 x)

    Returns the log base 2 of x.


1 exampleSign in to add an example
Loading...
(math/log (* math/e math/e))  # => 2
(math/log2 256)               # => 8
(math/log10 1000)             # => 3
cellularmitosisPlayground