up previous next
integer part of the logarithm
ILogBase(X: RAT, Base: INT): INT |
This function computes the integer part (floor) of the logarithm of a
rational number in a given base. The signs of X and Base are ignored.
/**/ ILogBase(128,2);
7
/**/ ILogBase(81.5,3);
4
|