NotFiniteNumberException Class
Collapse the table of content
Expand the table of content

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.


[Visual Basic]
Public Class NotFiniteNumberException
   Inherits ArithmeticException
public class NotFiniteNumberException : ArithmeticException
public __gc class NotFiniteNumberException : public
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.


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.


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

© 2015 Microsoft