From 6debf1e2189c9b193b0448fb35f728235f5b9eda Mon Sep 17 00:00:00 2001 From: Ryan Waits Date: Mon, 19 Aug 2024 16:19:56 -0500 Subject: [PATCH] missed formatting for subtraction --- content/docs/stacks/clarity/basic-arithmetic.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/docs/stacks/clarity/basic-arithmetic.mdx b/content/docs/stacks/clarity/basic-arithmetic.mdx index cf474ced..097e0218 100644 --- a/content/docs/stacks/clarity/basic-arithmetic.mdx +++ b/content/docs/stacks/clarity/basic-arithmetic.mdx @@ -45,9 +45,11 @@ Clarity's arithmetic functions are designed with blockchain-specific considerati ### 2. Subtraction (-) **What**: Subtracts integers from the first argument. + **Why**: Crucial for calculations involving decreasing values or finding differences. + **When**: Use when you need to decrease values, calculate differences, or perform any subtractive operation. -**How**: Code example and explanation. + **Best Practices**: - Guard against underflow - Consider using uint for values that shouldn't go negative