fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref 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)

See Also

SAVE FORMAT

SHOW FORMAT

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