public class ExactMath
extends java.lang.Object
Math
"exact" APIs.Modifier and Type | Method and Description |
---|---|
static int |
add(int x,
long y)
Returns the int result of adding an int and a long, and throws an exception if the result overflows an int.
|
public static int add(int x, long y)
x
- the first value, an int.y
- the second value, a long,java.lang.ArithmeticException
- when y overflow an int.java.lang.ArithmeticException
- if the result overflows an int.Copyright © 2010 - 2023 Adobe. All Rights Reserved