Export (0) Print
Expand All

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)

public bool IsPowerOfTwo { 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.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft