*compressreal()
Changes how real numbers are written to the output deck.
Syntax
*compressreal (flag)
Type
HyperMesh Template Command
Description
This command changes how real numbers are written to the output deck. The default value is 1. If used along with *realprecision, trailing zeros will be converted to blanks after the digits specified by *realprecision. For example, *realprecision(4) forces four digits to be written, even if they are zeros.
Inputs
- flag
- Trailing zeros are written as blanks.
Example
Using *compressreal(1) causes HyperMesh to write numbers such as 0.0000 as 0.0.
Using *compressreal(2) causes HyperMesh to write numbers such as 0.123456 as .123456.
The table below has examples of output obtained using *compressreal(3). The examples assume default options, that is, without the use of the custom strings mentioned above in *feoutputwithdata.
Actual value | Output in field of width 8 | Output in field of width 16 |
---|---|---|
0.125 | 0.125 | 0.125 |
0.1254768 | .1254768 | 0.1254768 |
0.12547687 | .1254769 | 0.12547687 |
0.125476842 | .1254768 | 0.125476842 |
1.02356E+015 | 1.024+15 | 1.02356+15 |
-1.02356E+015 | -1.02+15 | -1.02356+15 |