Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Funnny .NET Infinity bug

1. Launch VS.NET

2.
Put the following line anywhere in your code:
double d = Double.NegativeInfinity;

3.
Place a breakpoint on adjacent line and check the value of "d" variable via Add Watch/Quick Watch.

The result would be: NaN

It has been reproduced in both Framework 1.0 and 1.1.

On few machines, however, the result is displayed correctly as "-infinity".

SVA
Friday, January 30, 2004

*  Recent Topics

*  Fog Creek Home