help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fortran's 'D'


From: John W. Eaton
Subject: fortran's 'D'
Date: Wed, 9 Feb 2000 01:23:27 -0600 (CST)

On  2-Feb-2000, Daniel Heiserer <address@hidden> wrote:

| the ascii file reader "load" cannot read fortran's 'D' or 'd'
| syntax for "double" precision.
| 
| 2.3459D+00 -5.5848D+00  2.8277D+00 -1.2659D+01 -3.1762D+00 -1.3141D+01
| -2.4572D+00 -6.0110D+00
| 
| It works on the command line:
| octave:44> r=4d2
| r = 400
| 
| but not with the "load" command.
| Unfortunately I didnt find the lexer for the "load"
| command to patch it.

The load command just uses the C++ operator>>(istream&, double) to
extract numbers from a file.  Most don't support the `D' or `d'
exponent symbol.  If you can't change the code for the program that
writes the data, preprocessing your file with sed might be the best
option.

jwe



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]