Re: possible problem with long double

2005-11-01 Thread Andrew Haley
Vivaldo writes: > Dear Sir, > > I have found a difficult do work with long double. I have written a > simple test code and compiled it with gcc 4.0.0. The code was the following > > #include > #include > > using namespace std; > > main(){ > > long double x,y,a; > x = 1.000

possible problem with long double

2005-11-01 Thread Vivaldo
Dear Sir, I have found a difficult do work with long double. I have written a simple test code and compiled it with gcc 4.0.0. The code was the following #include #include using namespace std; main(){ long double x,y,a; x = 1.001; //(1 at 15th decimal place) y = 1.000