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

IconTypeDescription
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
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

IconTypeDescription
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

IconTypeDescription
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