Re: Basic format code question [message #50651 is a reply to message #50646] |
Mon, 16 October 2006 05:18   |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
On Mon, 16 Oct 2006, greg michael wrote:
> But isn't the point of using an ascii file to make it human-readable?
> And editable? If not, you might as well just write the actual byte
> representation.
>
> Allowing numbers to run into one another in the special case of 13-char
> negative floats isn't so attractive to me. What if I write "3-4-5"?
> Should that make sense?
>
> regards,
> Greg
>
FL> i3=(i2=(i1=0))
FL> read, i1,i2,i3
: 3-4-5
FL> help, i1,i2,i3
I1 INT = 3
I2 INT = -4
I3 INT = -5
So FL tries to interpret the numbers without the separating space.
Back to the original problem: in IDL, you will have to use an explicit
FORMAT specification in Windows. In FL, I will print out a 2-digit
exponent in Windows, too, so there will be always at least one space in
the (default free-format) 13-char wide output.
regards,
lajos
|
|
|