How to use log2 in scripting

i need to use log2 for and equation but its not in roblox lua.

How could i interpret or substitute log2 with something else that will give me the same answer

The built in log function in the math class does let you change the base of the log.

math.log(inputNum, base) is the way to change the base, so just put 2 for the base.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.