Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


AES
Posts:
72
Registered:
12/7/04


"FortranForm" for numbers?
Posted:
Aug 7, 1996 4:01 AM


Wanted:
1) A simple way to put an option at the start of a notebook so that all output numbers (in Print, Write, TableForm, etc) will come out in something similar to Fortran format, e.g.
4.56789E7
(I don't care much about the exact number of digits, or exactly where the decimal point ends up, and the exponent part can be skipped if not needed. Note that in mma FortranForm[1/7] comes out as 1/7 and not 0.1429).
2) I'd also like to understand why TableForm sometimes comes out with blank lines between each line of output and sometimes not, on the same table (and it's not due to word wrapping). And how to put multiple "sometable // TableForm ;" statements inside a Do loop and have them Print.



