|
[Date Index]
[Thread Index]
[Author Index]
I want to read numbers written in E-format.
- To: mathgroup at yoda.physics.unc.edu
- Subject: I want to read numbers written in E-format.
- From: Peter Whaite <peta at cim.mcgill.ca>
- Date: Mon, 13 Dec 1993 23:46:29 -0500
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?
Prev by Date:
Question about Solve (on mma2.2)
Next by Date:
New math.el
Previous by thread:
Question about Solve (on mma2.2)
Next by thread:
Re: I want to read numbers written in E-format.
|