Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fortran type formats

Status
Not open for further replies.

bobo12

Programmer
Dec 26, 2004
74
US
hi,
i am not really familiar with format type formats?
are there any good resources that will explain in detail exactly how to make sense of things like, 8F1.0

moreover, i am trying to convert from fortran format types to java primitives such as int,float,double,etc...is this easy to do. are there things format types represent that java primitives can't.

thanks for u'r help...
 
8F1.0
8 Number of times to repeat. If more than 8 items supplied, automatically print a new line after 8 have been printed.
F Floating format. There are several of these. I for integer, A for character, G for general. These are the ones I normally use but there are load
1 is the field width.
0 is the number of decimal places

If Java primitives are as painful as C++ iostream stuff, you'll have a nice time converting them. Easiest to write a printf type routine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top