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
+9-19Lines changed: 9 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1690,12 +1690,10 @@ And returns this result: `74`
1690
1690
1691
1691
### decimal
1692
1692
1693
-
If you are working with data that requires decimal precision, you will find the [decimal](../logic-apps/workflow-definition-language-functions-reference.md#decimal) function useful. This function can be used on numbers that require decimal precision and then can be used as an input to [logical comparison](../logic-apps/workflow-definition-language-functions-reference.md#logical-comparison-functions) and [math](../logic-apps/workflow-definition-language-functions-reference.md#math-functions) functions.
1694
-
1695
-
To use the result of the decimal function and not lose precision, you should wrap any decimal output with the [string function](../logic-apps/workflow-definition-language-functions-reference.md#string) to ensure that the precision is captured. This is illustrated by the examples below where precision is lost if the decimal result is used as a number.
1693
+
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.
1696
1694
1697
1695
> [!NOTE]
1698
-
> The decimal precision that is talked about in the context of this function and the Logic App Runtime is the same as the [.NET decimal precision](https://docs.microsoft.com/dotnet/api/system.decimal?view=netframework-4.7.1&preserve-view=true).
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).
1699
1697
1700
1698
```
1701
1699
decimal('<value>')
@@ -1713,44 +1711,36 @@ decimal('<value>')
1713
1711
1714
1712
*Example 1*
1715
1713
1716
-
This example creates a decimal and uses it as a number:
1714
+
This example creates a decimal that's used as a number:
0 commit comments