Skip to content

Commit

Permalink
Added missing parenthesis in about_Arithmetic_Operators.md (#10629)
Browse files Browse the repository at this point in the history
* 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.

* Copy change to all versions

---------

Co-authored-by: Sean Wheeler <[email protected]>
  • Loading branch information
VShrubowich and sdwheeler authored Nov 14, 2023
1 parent 003047b commit f9c73e2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9c73e2

Please sign in to comment.