[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTO_DOUBLE\u003c/code\u003e function converts strings or integers into double data types.\u003c/p\u003e\n"],["\u003cp\u003eSupported data types for the \u003ccode\u003eTO_DOUBLE\u003c/code\u003e function include integers, JSON, and strings.\u003c/p\u003e\n"],["\u003cp\u003eYou can convert a string to a double using the syntax \u003ccode\u003e$var1$.TO_DOUBLE()\u003c/code\u003e, as demonstrated with the string "2.5" being converted to the double 2.5.\u003c/p\u003e\n"],["\u003cp\u003eSimilarly, integers can be converted to doubles; for instance, the integer 22 becomes the double 22.0 when using \u003ccode\u003e$var1$.TO_DOUBLE()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# TO_DOUBLE function\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nTO_DOUBLE function\n==================\n\n`TO_DOUBLE` function\n--------------------\n\nSupported data type\n-------------------\n\n\nThe `TO_DOUBLE` function supports the following data types:\n\n- Integer\n- JSON\n- String\n\nExample 1: Convert a string to a double\n---------------------------------------\n\n\n**Sample data** : `$var1$ = \"2.5\"`\n\n\n**Usage** : `$var1$.TO_DOUBLE()`\nConvert var1 to double.\n\n\n**Output** : `2.5`\n\nExample 2: Convert an integer to a double\n-----------------------------------------\n\n\n**Sample data** : `$var1$ = 22`\n\n\n**Usage** : `$var1$.TO_DOUBLE()`\nConvert var1 to double.\n\n\n**Output** : `22.0`\n\nRecommendation\n--------------\n\n- Learn how to add and configure a [Data Mapping task](/application-integration/docs/configure-data-mapping-task)"]]