How can the number of digits required to represent  messages be a real number?

IT CAN’T!!!

The formula should be:

Meaning, the ceiling of Log(I)/Log(B). That means that IFF (if and only if) the resultant value is a real number greater than n+.0000, we must raise it to the next whole integer.