String Operator (FPScript)
Converts an expression into the string data type.
Syntax
String Expression
The syntax of the String operator consists of the following elements:
Element |
Description |
---|---|
Expression |
Any expression. All data types are permitted. |
Remarks
The operator can process scalar values or entire data series and data matrices. If Expression is a data series or a data matrix, then the type conversion takes place on a per-element basis and the result is once again a data series or a data matrix. If Expression is a list, then the operation is executed for each item in the list and the result is also a list.
When converting floating point values, the country-specific decimal and list separators specified in FlexPro Options are used. Complex numbers are formatted in accordance with the setting Display complex numbers on the General tab of the project database Properties dialog box. The empty type results in "Empty".
If Expression is a quantity, then its unit is used in the string.
Available in
FlexPro View, Basic, Professional, Developer Suite
Examples
String 1.2E3 |
Returns "1200". |
String (1.2, 3.4) |
Returns "(1.2, 3.4)" or "1,2+3,4i", depending on the setting Display complex numbers. |
String 2.5 V |
Returns "2.5 V" |
See Also
ComplexFloatingPoint32 Operator