FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


COMPLETE REAL NUMBERS

Syntax:

COMPLETE REAL NUMBERS

REAL NUMBERS AS WRITTEN

Function:

The command COMPLETE REAL NUMBERS instructs FPT to insert the digit 0 before a leading or after a trailing decimal point. The command REAL NUMBERS AS WRITTEN instructs FPT to transcribe numbers with leading or trailing decimal points without modification.

For example, the original source code

PARAMETER (G=.981)

is transcribed by FPT, with the specification COMPLETE REAL NUMBERS

PARAMETER (G=0.981)

or with the specification REAL NUMBERS AS WRITTEN

PARAMETER (G=.981)

Numbers which both begin and end with numeric characters are not affected by these commands.

The state of this command is reported by the SHOW FORMAT command and is saved in a .FSP file by the SAVE FORMAT command.

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:

REAL NUMBERS AS WRITTEN

(Note that defaults may be changed in the configuration file)

Examples:

%complete real numbers ! in and FSP file

FPT> complete real num

See also:

SAVE FORMAT

SHOW FORMAT


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