The IDL format codes '(X)' and '(X0)' behave specially
(where 'X' is any one of a number of format codes such
as D, F, I and so on).
The IDL (X0) format means, "print using a natural
width," where that is more or less arbitrarily defined
for floating point numbers, and the exact width for
integers. The (X) format means "print with maximum
GDL appears to handle integers and strings fine, but
not floating point.
print, !pi, format='(F)'
print, !pi, format='(F0)'
print, !dpi, format='(D)'
print, !dpi, format='(D0)'
I don't understand enough about the format-code parser
to tell how this can be fixed, so I leave it as a bug
> uname -a
Linux xylo 2.4.20-20.7smp #1 SMP Mon Aug 18 14:39:05
EDT 2003 i686 unknown
> cat /etc/redhat-release
Red Hat Linux release 7.1 (Seawolf)
Log in to post a comment.