StrictMath.IncrementExact 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
IncrementExact(Int64) |
Returns the argument incremented by one,
throwing an exception if the result overflows a |
IncrementExact(Int32) |
Returns the argument incremented by one,
throwing an exception if the result overflows an |
IncrementExact(Int64)
Returns the argument incremented by one,
throwing an exception if the result overflows a long
.
[Android.Runtime.Register("incrementExact", "(J)J", "", ApiSince=34)]
public static long IncrementExact (long a);
[<Android.Runtime.Register("incrementExact", "(J)J", "", ApiSince=34)>]
static member IncrementExact : int64 -> int64
Parameters
- a
- Int64
the value to increment
Returns
the result
- Attributes
Remarks
Returns the argument incremented by one, throwing an exception if the result overflows a long
. The overflow only occurs for Long#MAX_VALUE the maximum value.
Added in 14.
Java documentation for java.lang.StrictMath.incrementExact(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.
Applies to
IncrementExact(Int32)
Returns the argument incremented by one,
throwing an exception if the result overflows an int
.
[Android.Runtime.Register("incrementExact", "(I)I", "", ApiSince=34)]
public static int IncrementExact (int a);
[<Android.Runtime.Register("incrementExact", "(I)I", "", ApiSince=34)>]
static member IncrementExact : int -> int
Parameters
- a
- Int32
the value to increment
Returns
the result
- Attributes
Remarks
Returns the argument incremented by one, throwing an exception if the result overflows an int
. The overflow only occurs for Integer#MAX_VALUE the maximum value.
Added in 14.
Java documentation for java.lang.StrictMath.incrementExact(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.