FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference 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

Yes


Default:

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


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