How do I configure Mathematica to import data with Fortran E notation?
 Some users experience a problem when using the Import command to import certain data files containing Fortran E notation. In particular, files containing the “+” symbol have been known to be imported incorrectly. Our developers have created a workaround. Adding the following lines to the kernel's file will allow Import to recognize the “+” symbol.
Import; (* Add "+" to the list of characters allowed to be in numbers. *) System`ConvertersDump`possiblyNumberQ[System`ConvertersDump`str_String]:= Apply[And, Map[MemberQ[ {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", ".", "^", "-", "+"}, #] &, Characters[System`ConvertersDump`str]]]
This will allow the Import command to work as expected for data containing Fortran E notation. The file is a plain text file that can be created or modified in the directory determined by entering the following command: Download this FAQ as a Mathematica 5.2 Notebook
Questions or comments? Send email to support@wolfram.com.
|