Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28630 Discussions

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

bsmile_2nd
Beginner
562 Views
need to know this quickly, thanks!
0 Kudos
8 Replies
TimP
Honored Contributor III
562 Views
How about real(x, selected_real_kind(20)) ?
0 Kudos
bsmile_2nd
Beginner
562 Views

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 ...

0 Kudos
Steven_L_Intel1
Employee
562 Views
real(x,16)

There is not a specific name similar to dble for this.
0 Kudos
JVanB
Valued Contributor II
562 Views
QEXT
0 Kudos
TimP
Honored Contributor III
562 Views
QEXT does go way back, to DEC platforms even prior to VMS, and to HP3000. Unlike dble() and real(x, KIND=...), it was neverdefined ina standard, so is not included in many compilers with equivalent functionality.
0 Kudos
Steven_L_Intel1
Employee
562 Views
Ah, yes, missed QEXT. Sorry about that. As Tim notes, it is non-standard.
0 Kudos
bsmile_2nd
Beginner
562 Views
Thank allso 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!
0 Kudos
Steven_L_Intel1
Employee
562 Views
It's in the Language Reference, A-Z section.
0 Kudos
Reply