Re: Rounding off double precision



when I run the complete program

write (*,*) COS(90 * 3.141592653589793238d0 / 180.)
end

using g95 on this Mac, I get

6.123256244561421E-17

which is about the expected accuracy for double precision.

Here's the answer I get for the same program above using g77 on Linux:

6.12303177E-17

Am I doing anything wrong?
.