Welcome to Intel® Software Network Quick Login | Join | Help |
Search in Intel® Software Network Forums
in Go

what is the counterpart of "dble" to convert to real*16?

Last post 05-12-2008, 2:40 PM by Steve Lionel. 8 replies.
Sort Posts: Previous Next
 05-10-2008, 7:41 PM 30254547  

what is the counterpart of "dble" to convert to real*16?

need to know this quickly, thanks!
 
 05-10-2008, 9:36 PM 30254548 in reply to 30254547  

Re: what is the counterpart of "dble" to convert to real*16?

How about real(x, selected_real_kind(20))  ?
 
 05-10-2008, 11:09 PM 30254550 in reply to 30254548  

Re: what is the counterpart of "dble" to convert to real*16?

not homework, need to modify a lot of lapack subroutines to make them work under real*16, thus it would be most convenient to find out a replacement for dble, otherwise the modification would be terrible ...

 

 
 05-11-2008, 5:25 AM 30254555 in reply to 30254550  

Re: what is the counterpart of "dble" to convert to real*16?

real(x,16)

There is not a specific name similar to dble for this.

Steve

Doctor Fortran: intel.com/software/drfortran
 
 05-11-2008, 8:17 AM 30254559 in reply to 30254555  

Re: what is the counterpart of "dble" to convert to real*16?

QEXT
 
 05-11-2008, 8:39 AM 30254560 in reply to 30254559  

Re: what is the counterpart of "dble" to convert to real*16?

QEXT does go way back, to DEC platforms even prior to VMS, and to HP3000.  Unlike dble() and real(x, KIND=...), it was never defined in a standard, so is not included in many compilers with equivalent functionality.
 
 05-12-2008, 6:04 AM 30254606 in reply to 30254560  

Re: what is the counterpart of "dble" to convert to real*16?

Ah, yes, missed QEXT.   Sorry about that.  As Tim notes, it is non-standard.

Steve

Doctor Fortran: intel.com/software/drfortran
 
 05-12-2008, 12:08 PM 30254647 in reply to 30254560  

Re: what is the counterpart of "dble" to convert to real*16?

Thank all so so so much! It works! But I cannot find it in intel fortran manual, maybe due to the fact that it is nonstandard, however, intel supports it, that's enough!
 
 05-12-2008, 2:40 PM 30254667 in reply to 30254647  

Re: what is the counterpart of "dble" to convert to real*16?

It's in the Language Reference, A-Z section.

Steve

Doctor Fortran: intel.com/software/drfortran
 
View as RSS news feed in XML

Shortcuts


Tags For This Post

...

Community Tags

...