From 7faa91d79173b6f57c55ee602ce2039393c6b393 Mon Sep 17 00:00:00 2001 From: Victor Shrubowich <29671009+VShrubowich@users.noreply.github.com> Date: Mon, 13 Nov 2023 20:31:00 -0500 Subject: [PATCH] Added missing parenthesis in about_Arithmetic_Operators.md Added the missing parenthesis at the end of the first line in the [Math] class example in the **Division and rounding** section. --- .../About/about_Arithmetic_Operators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/7.3/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md b/reference/7.3/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md index e7ee8876f147..de04da58d390 100644 --- a/reference/7.3/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md +++ b/reference/7.3/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md @@ -178,7 +178,7 @@ PS> [int]( 7 / 2 ) # Result is rounded up You can use the `[Math]` class to get different rounding behavior. ```powershell -PS> [int][Math]::Round(5 / 2,[MidpointRounding]::AwayFromZero +PS> [int][Math]::Round(5 / 2,[MidpointRounding]::AwayFromZero) 3 PS> [int][Math]::Ceiling(5 / 2)