You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/ppl/functions/conversion.rst
-83Lines changed: 0 additions & 83 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,86 +79,3 @@ Cast function can be chained::
79
79
| True |
80
80
+-------+
81
81
82
-
TOSTRING
83
-
-----------
84
-
85
-
Description
86
-
>>>>>>>>>>>
87
-
The following usage options are available, depending on the parameter types and the number of parameters.
88
-
89
-
Usage with format type: tostring(ANY, [format]): Converts the value in first argument to provided format type string in second argument. If second argument is not provided, then it converts to default string representation.
90
-
Return type: string
91
-
92
-
Usage for boolean parameter without format type tostring(boolean): Converts the string to 'TRUE' or 'FALSE'.
93
-
Return type: string
94
-
95
-
You can use this function with the eval commands and as part of eval expressions. If first argument can be any valid type , second argument is optional and if provided , it needs to be format name to convert to where first argument contains only numbers. If first argument is boolean, then second argument is not used even if its provided.
96
-
97
-
Format types:
98
-
99
-
a) "binary" Converts a number to a binary value.
100
-
b) "hex" Converts the number to a hexadecimal value.
101
-
c) "commas" Formats the number with commas. If the number includes a decimal, the function rounds the number to nearest two decimal places.
102
-
d) "duration" Converts the value in seconds to the readable time format HH:MM:SS.
103
-
e) "duration_millis" Converts the value in milliseconds to the readable time format HH:MM:SS.
104
-
105
-
The format argument is optional and is only used when the value argument is a number. The tostring function supports the following formats.
106
-
107
-
Basic examples:
108
-
109
-
You can use this function to convert a number to a string of its binary representation.
0 commit comments