13.07.2015 Views

A Brief Introduction to Fortran 77 - Polaris

A Brief Introduction to Fortran 77 - Polaris

A Brief Introduction to Fortran 77 - Polaris

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Data TypesThere are six basic data types in <strong>Fortran</strong> <strong>77</strong>:1. Integer2. Real3. Double precision4. Complex5. Logical6. CharacterInteger and real constants are similar <strong>to</strong> those in C.Double precision constants are similar <strong>to</strong> real constants withexponents, but a D is used instead of an E:1.D0, 3.527876543D-4Complex constants are pairs of reals or integers enclosed inparentheses and separated by a comma. The first number isthe real part and the second the imaginary part:(1.23 , 23e1)Logical constants are .TRUE. and .FALSE.© 1998 David A. Padua8 of 118

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!