String function

The String function changes the datatype of the parameter to string.

Parameter: datatype

Any string, boolean, date, or numeric datatype. This can come from a source node, the result of another function, or a value that you specify.

Returns: string

The result of changing the parameter to string. The conversion rules depend on the datatype of the parameter:
  • For boolean datatypes, returns the string true or false
  • For date or time datatypes, returns the date or time as a string in the specific format for that datatype, such as ‘2003-01-20T05:00:00' for a datetime datatype.
  • For number datatypes, this returns:
    • ‘NaN' if the value is NaN (not a number)
    • ‘0' if the value is positive or negative zero.
    • ‘Infinity' or ‘-Infinity' if the value is positive or negative infinity (respectively).
    • The corresponding numeral, with a minus sign if negative and no leading zeroes. Decimal values have at least one numeral before the decimal point and as many decimal places as needed.