Represents an exception that is thrown when roundoff errors
in a calculation make it impossible to produce a meaningful
result.
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class TotalLossOfPrecisionException _ Inherits ArithmeticException |
| C# |
|---|
public class TotalLossOfPrecisionException : ArithmeticException |
| C++ |
|---|
public ref class TotalLossOfPrecisionException : public ArithmeticException |
Methods
| Icon | Type | Description |
|---|---|---|
| Equals(Object) | ||
| Finalize() | ||
| GetBaseException() | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. | |
| GetHashCode() | Serves as a hash function for a particular type. | |
| GetObjectData(SerializationInfo, StreamingContext) | When overridden in a derived class, sets the SerializationInfo with information about the exception. | |
| GetType() | Gets the runtime type of the current instance. | |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| ToString() | Creates and returns a string representation of the current exception. |
Constructors
| Icon | Type | Description |
|---|---|---|
| TotalLossOfPrecisionExceptionNew() |
Constructs a new TotalLossOfPrecisionException.
| |
| TotalLossOfPrecisionExceptionNew(String) |
Constructs a new TotalLossOfPrecisionException.
| |
| TotalLossOfPrecisionExceptionNew(String, Exception) |
Constructs a new TotalLossOfPrecisionException.
| |
| TotalLossOfPrecisionExceptionNew(SerializationInfo, StreamingContext) |
Initializes a new instance of the
TotalLossOfPrecisionException class with serialized
data. |
Properties
| Icon | Type | Description |
|---|---|---|
| Data | Gets a collection of key/value pairs that provide additional, user-defined information about the exception. | |
| HelpLink | Gets or sets a link to the help file associated with this exception. | |
| HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. | |
| InnerException | Gets the Exception instance that caused the current exception. | |
| Message | Gets a message that describes the current exception. | |
| Source | Gets or sets the name of the application or the object that causes the error. | |
| StackTrace | Gets a string representation of the frames on the call stack at the time the current exception was thrown. | |
| TargetSite | Gets the method that throws the current exception. |
Remarks
In some rare cases, round-off error can cause the
result of an operation to have no correct significant
digits at all. When this happens, an exception of type
TotalLossOfPrecisionException is thrown.
Round-off errors are the result of the finite precision of floating-point numbers. Only a few numbers can be represented exactly. The main contributing factor to total loss of precision is when two numbers of approximately equal size are subtracted.
Inheritance Hierarchy
System.Object
System.Exception
System.SystemException
System.ArithmeticException
Extreme.Mathematics.TotalLossOfPrecisionException
System.Exception
System.SystemException
System.ArithmeticException
Extreme.Mathematics.TotalLossOfPrecisionException