語言

Math.AbsExact 方法

定義

多載

名稱 Description
AbsExact(Int32)

傳回 a 的絕對值。

AbsExact(Int64)

傳回 a 的絕對值。

AbsExact(Int32)

傳回 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

參數

a
Int32

回傳絕對值的值。

傳回

的 a絕對值。

屬性

例外狀況

若 a 是 Int32.MinValue。

備註

當 a 是 Int32.MinValue時拋出 ,其絕對值無法表示為 int。

適用於

AbsExact(Int64)

傳回 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

參數

a
Int64

回傳絕對值的值。

傳回

的 a絕對值。

屬性

例外狀況

若 a 是 Int64.MinValue。

備註

當 a 為 時 Int64.MinValue擲出 ,其絕對值無法表示為 long。

適用於