Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

counterpart of "dble" in real*16 data format

Status
Not open for further replies.

bsmile2nd

IS-IT--Management
May 11, 2008
1
Can anybody help me out with the counterpart of the intrinsic function "dble", which does all "dble" does but transforms data into the extended precision, or real*16, format. I use intel fortran 10.1.

Meanwhile, does fortran provide the ability to test the data type of what is sent over into a function? It seems to me that all the formal arguments in the function need to have specific type first in order for them to receive data. Then, I wonder how one could manually write his own "dble" using fortran?
 
DBLE is intended to just that - convert the argument to
double precision.

To convert to quad precision, you use the fnction REAL
with the KIND argument specified.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top