Re: Rounding off double precision
- From: Bamm <bammster@xxxxxxxxx>
- Date: Fri, 28 Mar 2008 21:48:22 -0700 (PDT)
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?
.
- Follow-Ups:
- Re: Rounding off double precision
- From: *** Hendrickson
- Re: Rounding off double precision
- From: e p chandler
- Re: Rounding off double precision
- From: Greg Lindahl
- Re: Rounding off double precision
- References:
- Rounding off double precision
- From: Bamm
- Re: Rounding off double precision
- From: Bamm
- Re: Rounding off double precision
- From: Richard Maine
- Rounding off double precision
- Prev by Date: Re: Rounding off double precision
- Next by Date: Re: Rounding off double precision
- Previous by thread: Re: Rounding off double precision
- Next by thread: Re: Rounding off double precision
- Index(es):