UInt16.Log2(UInt16) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Computes the log2 of a value.

public:
 static System::UInt16 Log2(System::UInt16 value) = System::Numerics::IBinaryNumber<System::UInt16>::Log2;
public static ushort Log2(ushort value);
static member Log2 : uint16 -> uint16
Public Shared Function Log2 (value As UShort) As UShort

Parameters

value
UInt16

The value whose log2 is to be computed.

Returns

The log2 of value.

Implements

Applies to

Produkt Wersje
.NET 7, 8, 9, 10