March 2004
Intermediate to advanced
560 pages
26h 47m
English
using System;
namespace Samples
{
class ArithmeticExceptionSample
{
public static void Main()
{
try
{
Math.Sign(Double.NaN);
}
catch(ArithmeticException e)
{
Console.WriteLine("Exception: {0}", e);
}
}
}
}
Exception: System.ArithmeticException: Function does not accept floating point Not-a-Number values. at System.Math.Sign(Double value) at Samples.ArithmeticExceptionSample.Main() in C:\Books\BCL\Samples\System\ ArithmeticException\ArithmeticException.cs:line 11
Read now
Unlock full access