tostring() Function

Converts a value to Text. If an array is passed in, its values will be concatenated to form one string. To preserve the original array structure, use touniformstring.


tostring( value )

value: (Any Type) Value to convert.




Arguments after the first are ignored.

Values that hold a Number (Decimal) data type are displayed using 7 digits of precision, when cast to a string of plain text.

This function returns a null Text when passed a null value.


Do not use apply with tostring; use touniformstring() instead.


You can experiment with this function in the test box below.

Test Input

tostring(17) returns "17"

tostring({1,2,3}) returns "1, 2, 3" (note that this is a single Text, not an Array of Text)

See Also

touniformstring(): Use this function to preserve Arrays.

Open in Github Built: Fri, Mar 11, 2022 (04:59:07 PM)

On This Page