commands → logint

logint(A,B)

The logint command computes the floor of the logarithm of A to the base B, where A and B are positive integers.

Examples

logint(8,2);
	3

logint(10,3);
	2

References

Gullberg, Jan. Mathematics: From the Birth of Numbers. Norton, 1996.