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: articles/logic-apps/workflow-definition-language-functions-reference.md
+57-1Lines changed: 57 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: logic-apps
5
5
ms.suite: integration
6
6
ms.reviewer: estfan, niding, azla
7
7
ms.topic: reference
8
-
ms.date: 02/18/2022
8
+
ms.date: 03/01/2022
9
9
---
10
10
11
11
# Reference guide to workflow expression functions in Azure Logic Apps and Power Automate
@@ -178,6 +178,7 @@ To change a value's type or format, you can use these conversion functions. For
178
178
|[dataUri](../logic-apps/workflow-definition-language-functions-reference.md#dataUri)| Return the data URI for an input value. |
179
179
|[dataUriToBinary](../logic-apps/workflow-definition-language-functions-reference.md#dataUriToBinary)| Return the binary version for a data URI. |
180
180
|[dataUriToString](../logic-apps/workflow-definition-language-functions-reference.md#dataUriToString)| Return the string version for a data URI. |
181
+
|[decimal](../logic-apps/workflow-definition-language-functions-reference.md#decimal)| Return the decimal number for a decimal string. |
181
182
|[decodeBase64](../logic-apps/workflow-definition-language-functions-reference.md#decodeBase64)| Return the string version for a base64-encoded string. |
182
183
|[decodeDataUri](../logic-apps/workflow-definition-language-functions-reference.md#decodeDataUri)| Return the binary version for a data URI. |
183
184
|[decodeUriComponent](../logic-apps/workflow-definition-language-functions-reference.md#decodeUriComponent)| Return a string that replaces escape characters with decoded versions. |
Returns a decimal number in a string as a decimal number. You can use this function when you're working with data that requires decimal precision and also as input for [logical comparison functions](#logical-comparison-functions) and [math functions](#math-functions). To capture and preserve precision when you use the result from the **decimal()** function, wrap any decimal output with the [string function](#string). This usage is shown in the following examples below where you can lose precision if you use the decimal result as a number.
1694
+
1695
+
> [!NOTE]
1696
+
> The decimal precision that's discussed in the context for this function and the Azure Logic Apps runtime is the same as the [.NET decimal precision](/dotnet/api/system.decimal?view=netframework-4.7.1&preserve-view=true).
1697
+
1698
+
```
1699
+
decimal('<value>')
1700
+
```
1701
+
1702
+
| Parameter | Required | Type | Description |
1703
+
| --------- | -------- | ---- | ----------- |
1704
+
| <*value*> | Yes | String | The decimal number in a string |
1705
+
|||||
1706
+
1707
+
| Return value | Type | Description |
1708
+
| ------------ | ---- | ----------- |
1709
+
| <*decimal*> | Decimal Number | The decimal number for the input string |
1710
+
||||
1711
+
1712
+
*Example 1*
1713
+
1714
+
This example creates a decimal that's used as a number:
0 commit comments