Click or drag to resize

Int128Abs Method

Gets the absolute value of a 128 bit integer.

Namespace:  Meta.Numerics.Extended
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static Int128 Abs(
	Int128 x
)

Parameters

x
Type: Meta.Numerics.ExtendedInt128
The argument.

Return Value

Type: Int128
The absolute value of the argument.
Exceptions
ExceptionCondition
OverflowExceptionx was MinValue, which has no corresponding positive value in the range of the type.
Remarks

Because MinValue is one unit smaller in absolute value than MaxValue, this method throws an OverflowException when passed MinValue. Built in types such as Int32 have analogous behavior. All other values are supported.

See Also