Package org.apfloat

Class LossOfPrecisionException

java.lang.Object
All Implemented Interfaces:
Serializable

public class LossOfPrecisionException extends NumericComputationException
Exception indicating a result that would have no significant digits.

An example would be ApfloatMath.sin(new Apfloat(1e100)). Rather than returning an arbitrary result, this exception should be thrown.

Note that a subtraction where a complete loss of digits occurs does not throw this exception but instead just returns zero.

Since:
1.5
Version:
1.14.0
Author:
Mikko Tommila
See Also: