.. highlightlang:: us .. index:: log10 .. _log10: log10 ===== .. us.tag log10 ENGLISH math-base :ref:`log10` returns the base-10 logarithm of its parameter. .. function:: r = log10(m) .. us.return **Return Value** *r* is the base-10 logarithm of *m*. .. us.params **Parameters** .. uparam:: m *m* is a real or complex matrix. .. us.example **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; } } .. seealso:: :ref:`overview-mathematic`, :ref:`log` :sub:`id-376131`