34,333
edits
Changes
→Specifying Function Parameter Types
== Specifying Function Parameter Types ==
By default, if Windows PowerShell receives a parameter which is of the wrong type for the operations performing performed in the body of a function it will attempt to perform a type conversion to the correct type. For example, The following function multiplies two numbers passed through as arguments:
<pre>