Math.AbsExact 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| AbsExact(Int32) |
傳回 |
| AbsExact(Int64) |
傳回 |
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。