Re: error with "if" !!!
- From: Giorgio Pastore <pastgio@xxxxxxxxxxxxxxx>
- Date: Sat, 28 Apr 2007 12:05:22 +0200
nakisa wrote:
Hi ,everybody
I have encounter with strange error ( strange in my point view !)
In program, I need to find the sample values of function named f . I
use these 3 commands :
1) if (f<0.0005D0 ) then
2) if (abs(f-0.0005D0)<0.001D0) then
3) if (abs(f-0.0005D0)<0.01D0 ) then
to see the answer . I was surprised to see the answer of this commands
are different !
for example , 7.3124E-5 only given by second if !!
I tried with 3 different compilers (g95, ifort and F) all gave the same answer: condition is true. Maybe you have to check the rest of your code.
Giorgio
.
- References:
- error with "if" !!!
- From: nakisa
- error with "if" !!!
- Prev by Date: Re: utility to replace "end" with "end subroutine foo"
- Next by Date: Re: add a0 format to language to print trimmed character variables
- Previous by thread: error with "if" !!!
- Next by thread: Re: error with "if" !!!
- Index(es):
Relevant Pages
|