Type Conversion
| Name | Description | Example |
|---|---|---|
| boolean | Converts the argument to boolean | |
| number | Converts the argument to number | |
| string | Converts the argument to string | |
| timestamp | Converts the argument to timestamp |
Boolean Conversion Function
Boolean conversion function is used for getting the truth value of any expression.
Definition
| Argument | Type | Meaning |
|---|---|---|
| value_to_be_converted |
| Value to be converted into a boolean |
Examples
All the following expressions result in true:
Number Conversion Function
Number conversion function is used for converting strings, booleans and timestamps into numbers.
Definition
| Argument | Type | Meaning |
|---|---|---|
| value_to_be_converted |
| Value to be converted into a number |
Examples
All the following expressions result in true:
String Conversion Function
String conversion function is used for converting numbers, booleans, sets and timestamps into their textual representations.
Definition
| Argument | Type | Meaning |
|---|---|---|
| value_to_be_converted |
| Value to be converted into a string |
| date_time_format |
| (Optional and only if value_to_be_converted is a timestamp) String specifying the format of textual representation of the timestamp after conversion. See supported date and time format specifiers. If date_time_format is not specified, ISO 8601 format is used. |
Examples
All the following expressions result in true:
Timestamp Conversion Function
Timestamp conversion function is used for converting numbers and strings into timestamps.
Definition
| Argument | Type | Meaning |
|---|---|---|
| value_to_be_converted |
| Value to be converted into a string |
| date_time_format |
| (Optional and only if value_to_be_converted is a string) String specifying the format of value_to_be_converted. See supported date and time format specifiers. If date_time_format is not specified, ISO 8601 format is used. |
Examples
All the following expressions result in true: