Čítať v angličtine Upraviť

Zdieľať cez


Single.Log Method

Definition

Overloads

Log(Single, Single)

Computes the logarithm of a value in the specified base.

Log(Single)

Computes the natural (base-E logarithm of a value.

Log(Single, Single)

Source:
Single.cs
Source:
Single.cs
Source:
Single.cs

Computes the logarithm of a value in the specified base.

C#
public static float Log(float x, float newBase);

Parameters

x
Single

The value whose logarithm is to be computed.

newBase
Single

The base in which the logarithm is to be computed.

Returns

The base-newBase logarithm of x.

Implements

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 7, 8, 9, 10

Log(Single)

Source:
Single.cs
Source:
Single.cs
Source:
Single.cs

Computes the natural (base-E logarithm of a value.

C#
public static float Log(float x);

Parameters

x
Single

The value whose natural logarithm is to be computed.

Returns

The natural logarithm of x.

Implements

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET 7, 8, 9, 10