Edit

Share via


Single.Exp2(Single) 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 2 raised to a given power.

C#
public static float Exp2(float x);

Parameters

x
Single

The power to which 2 is raised.

Returns

2x

Implements

Applies to

Product Versions
.NET 7, 8, 9, 10