# math:log10 - XPath XQuery Reference

Returns the base-ten logarithm of the argument.deterministiccontext-independentfocus-independentIf $arg is the empty sequence, the function returns the empty sequence.Otherwise the result is the base-10 logarithm of $arg, as defined in the
                specification of the log10 function applied
            to 64-bit binary floating point values.math:log10(())()math:log10(0)xs:double('-INF')math:log10(1.0e3)3.0e0math:log10(1.0e-3)-3.0e0math:log10(2)0.3010299956639812e0math:log10(-1)xs:double('NaN')math:log10(xs:double('NaN'))xs:double('NaN')math:log10(xs:double('INF'))xs:double('INF')math:log10(xs:double('-INF'))xs:double('NaN')The treatment of divideByZero and invalidOperation exceptions
            is defined in . The effect is that if the argument is 
               zero, the result is -INF, and if it is negative, the result is NaN.