Math.AbsExact Method

Definition

Overloads

Name Description
AbsExact(Int32)

Returns the absolute value of a.

AbsExact(Int64)

Returns the absolute value of a.

AbsExact(Int32)

Returns the absolute value of a.

[Android.Runtime.Register("absExact", "(I)I", "", ApiSince=34)]
public static int AbsExact(int a);
[<Android.Runtime.Register("absExact", "(I)I", "", ApiSince=34)>]
static member AbsExact : int -> int

Parameters

a
Int32

The value whose absolute value is returned.

Returns

The absolute value of a.

Attributes

Exceptions

if a is Int32.MinValue.

Remarks

Throws when a is Int32.MinValue, whose absolute value cannot be represented as an int.

Applies to

AbsExact(Int64)

Returns the absolute value of a.

[Android.Runtime.Register("absExact", "(J)J", "", ApiSince=34)]
public static long AbsExact(long a);
[<Android.Runtime.Register("absExact", "(J)J", "", ApiSince=34)>]
static member AbsExact : int64 -> int64

Parameters

a
Int64

The value whose absolute value is returned.

Returns

The absolute value of a.

Attributes

Exceptions

if a is Int64.MinValue.

Remarks

Throws when a is Int64.MinValue, whose absolute value cannot be represented as a long.

Applies to