Export (0) Print
Expand All

BigInteger.Sign Property

Gets a number that indicates the sign (negative, positive, or zero) of the current BigInteger object.

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

public int Sign { get; }

Property Value

Type: System.Int32
A number that indicates the sign of the BigInteger object, as shown in the following table.

Number

Description

-1

The value of this object is negative.

0

The value of this object is 0 (zero).

1

The value of this object is positive.

The Sign property is equivalent to the Math.Sign method for the primitive numeric types.

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