IsPowerOfTwo Property
Collapse the table of content
Expand the table of content

BigInteger.IsPowerOfTwo Property

 

Indicates whether the value of the current BigInteger object is a power of two.

Namespace:   System.Numerics
Assembly:  System.Numerics (in System.Numerics.dll)

member IsPowerOfTwo : bool with get

Property Value

Type: System.Boolean

true if the value of the BigInteger object is a power of two; otherwise, false.

This property determines whether a BigInteger value has a single non-zero bit set. This means that it returns true if the value of the current BigInteger object is 1 (that is, 20) or any greater power of two. It returns false if the value of the current BigInteger object is 0.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft