mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Removing duped section
There was a duplicate section
This commit is contained in:
parent
11db56b81c
commit
8df9aa061f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user