Hi,

I’m troubleshooting button input problem; the following code:

print(math.log2(16384))

print(int(math.log2(16384)))

print(math.log2(32768))

print(int(math.log2(32768)))

produces the following output:

14.0

14

15.0

14

Can anybody tell me why the log2(32768) is not being correctly converted to an int?

Cheers,

Stu