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

Display of double precision numbers in debugger using obsolete D exponent

Andrew_Smith
Colaborador Valioso I
115 Vistas

Displaying floating point numbers with D exponent instead of E has both advantages and disadvantages. It allows copy and paste from/to variables in the debugger without loss of precision, but its a problem pasting into apps like Excel which don't recognise it as a number.

Could Intel make it an option? I think it should use E by default.

This issue might be my fault as I recall decades ago requesting the D !

1 Responder
Steve_Lionel
Colaborador Distinguido III
106 Vistas

I don't care what Excel does (there's a famous comic about what Excel considers a date), but it's not an unreasonable request to use E as that's what the standard does for list-directed output. D format isn't QUITE yet obsolescent - it will be in the next revision. But D in double precision literals will still be part of the regular standard. I do think the debugger should display values the way list-directed would, using E.

Responder