"Similarly, if the reference value is one of some powers of 2, since computers store data in a binary format, the magnitude can be understood in terms of the amount of computer memory needed to store that value. "
int(log2(n)) is a perfectly acceptable order of magnitude, especially when considering computers, at least to me.
Even the Wikipedia page makes reference to this: https://en.wikipedia.org/wiki/Order_of_magnitude
"Similarly, if the reference value is one of some powers of 2, since computers store data in a binary format, the magnitude can be understood in terms of the amount of computer memory needed to store that value. "
int(log2(n)) is a perfectly acceptable order of magnitude, especially when considering computers, at least to me.