語言

Math.NegateExact 方法

定義

多載

名稱 Description
NegateExact(Int32)

回傳參數的否定,若結果溢 int出 ,則拋出例外。

NegateExact(Int64)

回傳參數的否定,若結果溢出 , long則拋出例外。

NegateExact(Int32)

回傳參數的否定,若結果溢 int出 ,則拋出例外。

[Android.Runtime.Register("negateExact", "(I)I", "", ApiSince=24)]
public static int NegateExact(int a);
[<Android.Runtime.Register("negateExact", "(I)I", "", ApiSince=24)>]
static member NegateExact : int -> int

參數

a
Int32

抵消的值

傳回

結果

屬性

備註

Java 文件 java.lang.Math.negateExact(int)

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

NegateExact(Int64)

回傳參數的否定,若結果溢出 , long則拋出例外。

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

參數

a
Int64

抵消的值

傳回

結果

屬性

備註

Java 文件 java.lang.Math.negateExact(long)

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於