The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
BigInteger::IsPowerOfTwo Property
.NET Framework (current version)
Indicates whether the value of the current BigInteger object is a power of two.
Assembly: System.Numerics (in System.Numerics.dll)
Property Value
Type: System::Booleantrue 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 8
.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
Available since 8
.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
Show: