We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bf7175 commit 69d27d6Copy full SHA for 69d27d6
modules/querying/pages/func/type-conversion-functions.adoc
@@ -184,3 +184,13 @@ Converts a number to a string.
184
| The number to turn into a string
185
| Number
186
|===
187
+
188
+=== Example
189
190
+----
191
+to_string(1000.1) -> "1000.1"
192
+to_string(0.0000000001) -> "1E-10"
193
+to_string(12300000000) -> "12300000000" // Using an `INT` or `UINT` value returns the full number as a string without scientific notation
194
+to_string(12300000000.0) -> "1.23e+10" // Using a `DOUBLE` value returns scientific notation for large numbers
195
+to_string(12300000000.0) -> "1.23e+10" // Using a `FLOAT` value also returns scientific notation for large numbers
196
0 commit comments