FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


REAL NUMBERS AS WRITTEN

Syntax:

REAL NUMBERS AS WRITTEN

COMPLETE REAL NUMBERS

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 these commands is displayed by the SHOW FORMAT command and captured 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)

See also:

COMPLETE REAL NUMBERS

SAVE FORMAT

SHOW FORMAT


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