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
You might be interested in these articles
You are currently viewing a placeholder content from Facebook. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Instagram. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from X. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information