log10ΒΆ
log10 returns the base-10 logarithm of its parameter.
- r = log10(m)
Return Value
r is the base-10 logarithm of m.
Parameters
- m
m is a real or complex matrix.
Example
The following functions calculates the number of decimal places for a given axis increment using the log10 function:
def GetNeededDecimalPlaces(rsDelta)
{
if (abs(rsDelta) == 0.0) {
l10 = 1.0;
} else {
l10 = log10(abs(rsDelta));
}
if (l10 < 0.0) {
return int(-floor(l10));
} else {
return 0;
}
}
See also
id-376131