Discuss Scratch

ivancr72
Scratcher
100+ posts

log2 / binary logarithm workaround

I'm making a calculator in Scratch. There is any workaround or custom block that calculates logarithms of base 2?
Wikipedia article for those don't know or understands what is a binary logarithm
deck26
Scratcher
1000+ posts

log2 / binary logarithm workaround

drmcw
Scratcher
1000+ posts

log2 / binary logarithm workaround

It's in the link you gave!

(([ln v] of (x)) / ([ln v] of (2)))
ivancr72
Scratcher
100+ posts

log2 / binary logarithm workaround

Thanks!

Powered by DjangoBB