diff --git a/powershell.html.markdown b/powershell.html.markdown index 99f5de97..2777820a 100644 --- a/powershell.html.markdown +++ b/powershell.html.markdown @@ -19,6 +19,7 @@ rather than plain text. After years of evolving, it resembles Python a bit. [Read more here.](https://docs.microsoft.com/powershell/scripting/overview) Powershell as a Language: + ```powershell # Single line comments start with a number symbol. @@ -41,26 +42,6 @@ Powershell as a Language: 10 * 2 # => 20 35 / 5 # => 7.0 -# Single line comments start with a number symbol. - -<# - Multi-line comments - like so -#> - -#################################################### -## 1. Primitive Datatypes and Operators -#################################################### - -# Numbers -3 # => 3 - -# Math -1 + 1 # => 2 -8 - 1 # => 7 -10 * 2 # => 20 -35 / 5 # => 7.0 - # Powershell uses banker's rounding # Meaning [int]1.5 would round to 2 but so would [int]2.5 # division always returns a float. You must cast result to [int] to round