Most computer languages don't have a log2 function, but you can convert all logs doing the following:
log( x, base ) = log(x) / log(base)
It works regardless of what the base of the log function you're using. Whether it's natural log or log10.
More information about formatting options
Log -> Log2
Most computer languages don't have a log2 function, but you can convert all logs doing the following:
log( x, base ) = log(x) / log(base)
It works regardless of what the base of the log function you're using. Whether it's natural log or log10.