# Uses of Class
org.apfloat.OverflowException

Packages that use OverflowException
Package
Description
org.apfloat.spi
The apfloat Service Provider Interface (SPI).

- ## Uses of OverflowException in org.apfloat.spi

  Methods in org.apfloat.spi that throw OverflowException
  Modifier and Type
  Method
  Description
  `static long`
  Util.`addExact(long x, long y)`
  Returns the sum of the arguments, throwing an exception if the result overflows a long.
  `static long`
  Util.`multiplyExact(long x, long y)`
  Returns the product of the arguments, throwing an exception if the result overflows a long.
  `static long`
  Util.`subtractExact(long x, long y)`
  Returns the difference of the arguments, throwing an exception if the result overflows a long.
  `static int`
  Util.`toIntExact(long x)`
  Returns the argument converted to int, throwing an exception if the result overflows.