Share via


Math.Abs Method

Returns the absolute value of a specified integer.

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

Syntax

public static int Abs (
         intval
)

Parameters

  • val
    A number between the minimum and maximum allowable values for an integer.

Return Value

The absolute value of a specified integer.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Math Class
Math Members
System Namespace