Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

NotFiniteNumberException Class

The exception that is thrown when a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN).

For a list of all members of this type, see NotFiniteNumberException Members.

System.Object
   System.Exception
      System.SystemException
         System.ArithmeticException
            System.NotFiniteNumberException

[Visual Basic]
<Serializable>
Public Class NotFiniteNumberException
   Inherits ArithmeticException
[C#]
[Serializable]
public class NotFiniteNumberException : ArithmeticException
[C++]
[Serializable]
public __gc class NotFiniteNumberException : public
   ArithmeticException
[JScript]
public
   Serializable
class NotFiniteNumberException extends ArithmeticException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

Operations involving Double or Single operations throw this exception.

Applications written in C# will not throw this exception. NotFiniteNumberException is available for languages that do not support infinity and Not-a-Number constants.

NotFiniteNumberException uses the HRESULT COR_E_NOTFINITENUMBER, which has the value 0x80131528.

For a list of initial property values for an instance of NotFiniteNumberException, see the NotFiniteNumberException constructors.

Requirements

Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

NotFiniteNumberException Members | System Namespace | Exception | Double | Handling and Throwing Exceptions

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.