- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've got aproblem with precision loss.
does anyone know if this isa 6.6B problem?
module common
double precision ::PI=3.141592653589793238D0, GC=32.174
contains
FUNCTION FCAP(N) RESULT(OUT)
USE GTAC
IMPLICIT NONE
DOUBLE PRECISION OUT
INTEGER N
OUT=RHO(N)*CP(N)*PI*D(N)*D(N)/4.0*(DX(N)+DY(N))
END FUNCTION
end module
when I call the fcap function, using the debuggerI noticed that
PI =3.14159250259399
3.141592653589793238D0
^^^
^^^
what happened here?
Has anyone else encountered this before?
Thanks!
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page