Math.AbsExact Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AbsExact(Int32) |
Returns the absolute value of |
| AbsExact(Int64) |
Returns the absolute value of |
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.