[Date Index] [Thread Index] [Author Index]
I want to read numbers written in E-format.
I have programs that write Mma expressions to a file. I bring this file into Mma using Get. Unfortunately there are numbers in the file which are sometimes in e-format, so e.g. 1.234e+456 gets parsed as 456 + 1.234*e. ReadList can handle e-format numbers but I can't use it. I can do something like... Unprotect[Plus]; Plus[mant_?NumberQ, Times[expon_?NumberQ, e]] := mant*10^expon; Protect[Plus]; Is there a better way?