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 1/2] 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) From 1d3de9875bf16f2a9779a4d0a22f96e081aded59 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Tue, 14 Nov 2023 10:21:45 -0600 Subject: [PATCH 2/2] Copy change to all versions --- .../About/about_Arithmetic_Operators.md | 2 +- .../About/about_Arithmetic_Operators.md | 2 +- .../About/about_Arithmetic_Operators.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md index bdd0b5bf6751..9894cee5a330 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md +++ b/reference/5.1/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) diff --git a/reference/7.2/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md b/reference/7.2/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md index 2d5db85a5db1..e9a72d6440e1 100644 --- a/reference/7.2/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md +++ b/reference/7.2/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) diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md index 24ddfab60c41..bf0ad3863055 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Arithmetic_Operators.md +++ b/reference/7.4/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)