Java.Lang.Math.Abs Method
Returns the absolute value of the argument.

Syntax

[Android.Runtime.Register("abs", "(F)F", "")]
public static float Abs (float f)

Parameters

f
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the absolute value of the argument.

Special cases:

  • abs(-0.0) = +0.0
  • abs(+infinity) = +infinity
  • abs(-infinity) = +infinity
  • abs(NaN) = NaN

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1