Math "exact" APIs.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the addition of both values.the first value, an int. x, final long the second value, a long, y)Returns the int result of adding an int and a long, and throws an exception if the result overflows an int. |
| ExactMath | back to summary |
|---|---|
| private ExactMath() | |
| add | back to summary |
|---|---|
| public static int add(final int x, final long y) Returns the int result of adding an int and a long, and throws an exception if the result overflows an int.
| |