I got a "nan" result in Visual Basic Studio

I wrote a code in F90, and when I run it using Visual Studio, I get “nan” results, but when I use Microsoft Developer Studio, I get the correct results. why?

There could be any number of reasons and without some code at least we can only speculate. One possible cause: undefined variables. The two environments could lead to different random values for such variables.