log2

fun log2(p: Long): Long(source)

log2(p / 1_000_000) in micro-bits for 0 < p <= 1_000_000; zero or negative.