共用方式為


StrictMath.Log10(Double) Method

Definition

Returns the base 10 logarithm of a double value.

[Android.Runtime.Register("log10", "(D)D", "")]
public static double Log10 (double a);
[<Android.Runtime.Register("log10", "(D)D", "")>]
static member Log10 : double -> double

Parameters

a
Double

a value

Returns

the base 10 logarithm of a.

Attributes

Remarks

Returns the base 10 logarithm of a double value. Special cases:

<ul><li>If the argument is NaN or less than zero, then the result is NaN. <li>If the argument is positive infinity, then the result is positive infinity. <li>If the argument is positive zero or negative zero, then the result is negative infinity. <li>If the argument is equal to 10<sup>n</sup> for integer n, then the result is n. In particular, if the argument is 1.0 (10<sup>0</sup>), then the result is positive zero. </ul>

Added in 1.5.

Java documentation for java.lang.StrictMath.log10(double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to