public class LossOfPrecisionException extends ApfloatRuntimeException
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.
| Constructor and Description |
|---|
LossOfPrecisionException()
Constructs a new apfloat loss of precision exception with an empty detail message.
|
LossOfPrecisionException(String message)
Constructs a new apfloat loss of precision exception with the specified detail message.
|
LossOfPrecisionException(String message,
Throwable cause)
Constructs a new apfloat loss of precision exception with the specified detail message and cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic LossOfPrecisionException()
public LossOfPrecisionException(String message)
message - The detail message.Copyright © 2025. All rights reserved.