functionprintRealArray
Print string to terminal or file
Extends from Modelica.Icons.Function (Icon for functions).
Information
Function that prints a real array to an output file.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Input to be printed | |
| String | fileName | "" | File where to print (empty string is the terminal) |
| Integer | minimumLength | 1 | Minimum width of result |
| Integer | significantDigits | 6 | Number of significant digits |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | outStr | "" | String to be printed |
Revisions
-
August 16, 2011 by Michael Wetter:
Removednumberattribute inStringfunction as this is not according to the Modelica specification. -
May 27, 2011 by Michael Wetter:
Changed parameterprecisiontosignificantDigitsandminimumWidthtominimumLengthto use the same terminology as the Modelica Standard Library. -
October 1, 2008 by Michael Wetter:
Revised implementation and moved to new package. -
September 20, 2007 by Michael Wetter:
First implementation.