Dear Biomch-L Readers,
I'm translating a Fortran program to C.
I don't understand the meaning of one of the function (I thought I
know Fortran ... I'm probably rusty!) despite my three books on the subject (none mentions the function)!
In the following 2 statements :
VARIABLE1=SIGN(1.0,VARIABLE2)
VARIABLE1=SIGN(VARIABLE1, VARIABLE2)
What does SIGN doing?
Does it compare the arguments in the brackets? If yes, how?
What would be the value in VARIABLE1 at the end?
Thank you for your help!
S. VAN SINT JAN
--------------------------------------------------------------------------
Serge VAN SINT JAN, Ph.D. | phone: + 44 1908 695511 (ext. 4146)
School of Computing Sciences | + 44 1908 834933
De Montfort University | fax: + 44 1908 834948
Hammerwood Gate | email: sintjans@dmu.ac.uk
Milton Keynes MK7 6HP - UK | WWW: http://homepages.ulb.ac.be/~sintjans
--------------------------------------------------------------------------
I'm translating a Fortran program to C.
I don't understand the meaning of one of the function (I thought I
know Fortran ... I'm probably rusty!) despite my three books on the subject (none mentions the function)!
In the following 2 statements :
VARIABLE1=SIGN(1.0,VARIABLE2)
VARIABLE1=SIGN(VARIABLE1, VARIABLE2)
What does SIGN doing?
Does it compare the arguments in the brackets? If yes, how?
What would be the value in VARIABLE1 at the end?
Thank you for your help!
S. VAN SINT JAN
--------------------------------------------------------------------------
Serge VAN SINT JAN, Ph.D. | phone: + 44 1908 695511 (ext. 4146)
School of Computing Sciences | + 44 1908 834933
De Montfort University | fax: + 44 1908 834948
Hammerwood Gate | email: sintjans@dmu.ac.uk
Milton Keynes MK7 6HP - UK | WWW: http://homepages.ulb.ac.be/~sintjans
--------------------------------------------------------------------------