StrictMath.NegateExact 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
NegateExact(Int32) |
Returns the negation of the argument,
throwing an exception if the result overflows an |
NegateExact(Int64) |
Returns the negation of the argument,
throwing an exception if the result overflows a |
NegateExact(Int32)
Returns the negation of the argument,
throwing an exception if the result overflows an int
.
[Android.Runtime.Register("negateExact", "(I)I", "", ApiSince=34)]
public static int NegateExact (int a);
[<Android.Runtime.Register("negateExact", "(I)I", "", ApiSince=34)>]
static member NegateExact : int -> int
Parameters
- a
- Int32
the value to negate
Returns
the result
- Attributes
Remarks
Returns the negation of the argument, throwing an exception if the result overflows an int
. The overflow only occurs for Integer#MIN_VALUE the minimum value.
Added in 14.
Java documentation for java.lang.StrictMath.negateExact(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
NegateExact(Int64)
Returns the negation of the argument,
throwing an exception if the result overflows a long
.
[Android.Runtime.Register("negateExact", "(J)J", "", ApiSince=34)]
public static long NegateExact (long a);
[<Android.Runtime.Register("negateExact", "(J)J", "", ApiSince=34)>]
static member NegateExact : int64 -> int64
Parameters
- a
- Int64
the value to negate
Returns
the result
- Attributes
Remarks
Returns the negation of the argument, throwing an exception if the result overflows a long
. The overflow only occurs for Long#MIN_VALUE the minimum value.
Added in 14.
Java documentation for java.lang.StrictMath.negateExact(long)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.