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

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

bsmile_2nd
初學者
954 檢視
need to know this quickly, thanks!
0 積分
8 回應
TimP
榮譽貢獻者 III
954 檢視
How about real(x, selected_real_kind(20)) ?
bsmile_2nd
初學者
954 檢視

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

Steven_L_Intel1
954 檢視
real(x,16)

There is not a specific name similar to dble for this.
JVanB
傑出貢獻者 II
954 檢視
QEXT
TimP
榮譽貢獻者 III
954 檢視
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.
Steven_L_Intel1
954 檢視
Ah, yes, missed QEXT. Sorry about that. As Tim notes, it is non-standard.
bsmile_2nd
初學者
954 檢視
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!
Steven_L_Intel1
954 檢視
It's in the Language Reference, A-Z section.
回覆