tostring()
Learn how to use the tostring() function to convert the input value to a string representation.
Converts the input to a string representation.
Syntax
tostring(value)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| value | scalar | ✔️ | The value to convert to a string. |
Returns
If value is non-null, the result is a string representation of value. If value is null, the result is an empty string.
Example
The following example changes the input to a string.
print tostring(123)
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.