Math.Log2(Double) Methode
Definition
Gibt den Logarithmus einer angegebenen Zahl zur Basis 2 zurück.Returns the base 2 logarithm of a specified number.
public:
static double Log2(double x);
public static double Log2 (double x);
static member Log2 : double -> double
Public Shared Function Log2 (x As Double) As Double
Parameter
- x
- Double
Eine Zahl, deren Logarithmus gesucht wird.A number whose logarithm is to be found.
Gibt zurück
Einer der Werte aus der folgenden Tabelle.One of the values in the following table.
x -Parameterx parameter
| RückgabewertReturn value |
---|---|
PositivPositive | Der Logarithmus von x zur Basis 2, d.h. log 2x .The base 2 log of x ; that is, log 2x .
|
ZeroZero | NegativeInfinity |
NegativNegative | NaN |
Gleich NaNEqual to NaN | NaN |
Gleich PositiveInfinityEqual to PositiveInfinity | PositiveInfinity |
Hinweise
Der Parameter x
wird als Basis 10-Nummer angegeben.Parameter x
is specified as a base 10 number.
Diese Methode ruft die zugrunde liegende C-Laufzeit auf, und das genaue Ergebnis oder der gültige Eingabebereich kann sich zwischen verschiedenen Betriebssystemen oder Architekturen unterscheiden.This method calls into the underlying C runtime, and the exact result or valid input range may differ between different operating systems or architectures.