In this lesson we look more closely at some of the rules and conventions that must be observed.Īn integer in Fortran is a whole number it cannot contain commas or a decimal point. Whereas Basic is more lenient, allowing some flexibility in mixing variables and numbers of different types, Fortran is less forgiving and will make you pay for oversights. To avoid mistakes in Fortran arithmetic you must pay close attention to rules regarding working with numbers of the various types.
In Fortran Lesson 1 we briefly looked at the types of variables in Fortran.