string
string
Function
Convert the value to a string.
Syntax
string(value)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| value | Any | No | None | The value to convert. |
Return value
| Type | Description |
|---|---|
| String | Returns a string result. |
Example
result = string(42) // Output: 42 print result
Notes
- Returns an empty string when no parameters are passed.