Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Fortran 90 Programmer's Reference: HP Series 700/800 Computers > Chapter 2 Language elements

Character set

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The Fortran 90 character set consists of letters, digits, the underscore character, and special characters, as detailed in Table 2-1 “ Fortran 90 character set”.

The processor character set consists of the Fortran 90 character set, plus:

  • Control characters (Tab, Newline , and Carriage Return). Carriage Return and Tab are usually treated as "white space" in a source program. Their use may affect the appearance of a listing file.

  • The hash character (#), which may appear in column 1 to initiate a comment; this is an extension.

  • Any other characters in the HP character set. Refer to Appendix B, HP character set. The other characters may be used in character constants, character string edit descriptors, comments, and I/O records.

    Table 2-1  Fortran 90 character set

    Category

    Characters

    Letters

    A to Z, a to z [1]

    Digits

    0 to 9

    Underscore

    _

    Special characters

    • blank (space)

    • = + - * / ( ) , . '

    • : ! " % & ; < > ? [2] $

    [1] Lowercase alphabetic characters are equivalent to uppercase characters except when they appear in character strings or Hollerith constants.

    [2] Although "?" has been designated a special character, it has no special meaning in the Fortran 90 language.

     

HP Fortran 90 supports only the default character type,which has kind parameter = 1, as described in Chapter 3. However, support is provided for the use of Extended UNIX Code (EUC) and Shift-JIS encoding. See Appendix B for details.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.