fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

CHANGE OCTAL NUMBERS

Syntax:

CHANGE OCTAL [NUMBERS] TO DEC [FORMAT]
CHANGE OCTAL [NUMBERS] TO FORTRAN 90 [FORMAT]
CHANGE OCTAL [NUMBERS] TO IBM [FORMAT]
CHANGE OCTAL [NUMBERS] TO INTEL [FORMAT]
CHANGE OCTAL [NUMBERS] TO PDP11 [FORMAT]
CHANGE OCTAL [NUMBERS] TO SALFORD [FORMAT]
CHANGE OCTAL [NUMBERS] TO TOP[ ]EXPRESS [FORMAT]
CHANGE OCTAL [NUMBERS] TO O'7777'
CHANGE OCTAL [NUMBERS] TO '7777'O
DO NOT CHANGE OCTAL NUMBERS
OCTAL NUMBERS AS WRITTEN

Function:

fpt reads octal numbers in all of the formats listed above. These commands instruct fpt systematically to convert octal numbers to the specified formats. Some of the formats are synonyms. They are, for example:

DEC '3777'O
Fortran 90 '3777'O
IBM '3777'O
Intel #3777O
PDP11 "3777
Salford O'3777'
TopExpress ?'3777'O

HEX numbers may similarly be changed by the command CHANGE HEX NUMBERS.

Note that no attempt is made to byte-swap the numbers in changing between big-ended and little-ended systems.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp Yes
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt Yes
Interactive command files Yes
Embedded in the Fortran code No

Default

Octal numbers are not changed by default (Note that defaults may be changed in the configuration file).

Copyright ©1995 to 2018 Software Validation Ltd. All rights reserved.