From 69d27d602c3c1754bf526f32fc8a20ba2b69e40a Mon Sep 17 00:00:00 2001 From: Tushar-TG-14 Date: Fri, 20 Dec 2024 19:33:54 +0530 Subject: [PATCH] DOC-1845-3.6-string example updated --- .../querying/pages/func/type-conversion-functions.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/querying/pages/func/type-conversion-functions.adoc b/modules/querying/pages/func/type-conversion-functions.adoc index e8565911..4f0c80f9 100644 --- a/modules/querying/pages/func/type-conversion-functions.adoc +++ b/modules/querying/pages/func/type-conversion-functions.adoc @@ -184,3 +184,13 @@ Converts a number to a string. | The number to turn into a string | Number |=== + +=== Example + +---- +to_string(1000.1) -> "1000.1" +to_string(0.0000000001) -> "1E-10" +to_string(12300000000) -> "12300000000" // Using an `INT` or `UINT` value returns the full number as a string without scientific notation +to_string(12300000000.0) -> "1.23e+10" // Using a `DOUBLE` value returns scientific notation for large numbers +to_string(12300000000.0) -> "1.23e+10" // Using a `FLOAT` value also returns scientific notation for large numbers +----