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

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

bsmile_2nd
初学者
932 次查看
need to know this quickly, thanks!
0 项奖励
8 回复数
TimP
名誉分销商 III
932 次查看
How about real(x, selected_real_kind(20)) ?
0 项奖励
bsmile_2nd
初学者
932 次查看

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 项奖励
Steven_L_Intel1
932 次查看
real(x,16)

There is not a specific name similar to dble for this.
0 项奖励
JVanB
重要分销商 II
932 次查看
QEXT
0 项奖励
TimP
名誉分销商 III
932 次查看
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 项奖励
Steven_L_Intel1
932 次查看
Ah, yes, missed QEXT. Sorry about that. As Tim notes, it is non-standard.
0 项奖励
bsmile_2nd
初学者
932 次查看
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 项奖励
Steven_L_Intel1
932 次查看
It's in the Language Reference, A-Z section.
0 项奖励
回复