Skip to content

Commit 69d27d6

Browse files
authored
DOC-1845-3.6-string example updated
1 parent 5bf7175 commit 69d27d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/querying/pages/func/type-conversion-functions.adoc

+10
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,13 @@ Converts a number to a string.
184184
| The number to turn into a string
185185
| Number
186186
|===
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

Comments
 (0)