11.07.2015 Views

Fortran 90 Handbook

Fortran 90 Handbook

Fortran 90 Handbook

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

4There is an intrinsic function, SELECTED_INT_KIND, that returns the integerkind parameter required to represent as many decimal digits as are specifiedby the function argument. If there is no such integer type available from theprocessor, –1 is returned. For example:INTEGER (SELECTED_INT_KIND (5)) I, Jdeclares I and J to be integer objects with a representation method that permitsat least five decimal digits; that is, it includes all integers between – 105and10 5 .4.3.1.3 OperatorsThere are both binary and unary intrinsic operators for the integer type. Binaryoperators have two operands and unary operators have only one. The binaryarithmetic operations for the integer type are: +, –, ∗, /, and ∗∗. The unaryarithmetic operations are + and –. The relational operations (all binary) are:.LT., . The result of anintrinsic arithmetic operation on integer operands is an integer entity; theresult of an intrinsic relational operation is a logical entity of default logicalkind.4.3.1.4 Form for Constant ValuesAn integer constant is a string of decimal digits, optionally preceded by a signand optionally followed by an underscore and a kind parameter.The form of a signed integer literal constant (R403) is:[ sign ] digit-string [ _ kind-parameter ]where a sign is either + or – and the kind parameter is one of:Examples are:digit-stringscalar-integer-constant-name429999999999999999999999_LONG+6410000000-258_SHORTData Types 101Copyright © 1992 J. Adams, W. Brainerd, J. Martin, B. Smith, and J. Wagener

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

Saved successfully!

Ooh no, something went wrong!