BigInteger.Abs Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the absolute value of a BigInteger object.

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

Syntax

'Declaration
Public Shared Function Abs ( _
    value As BigInteger _
) As BigInteger
public static BigInteger Abs(
    BigInteger value
)

Parameters

Return Value

Type: System.Numerics.BigInteger
The absolute value of value.

Remarks

The absolute value of a number is that number without its sign, as shown in the following table.

value parameter

Return value

value >= 0

value

value < 0

value * -1

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

Version Information

Silverlight

Supported in: 5, 4

Platforms

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