File tree 4 files changed +11
-7
lines changed 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ SE-UP example commandlet
13
13
## SYNTAX
14
14
15
15
```
16
- Get-Cube [-Number] <Int32 []> [<CommonParameters>]
16
+ Get-Cube [-Number] <Decimal []> [<CommonParameters>]
17
17
```
18
18
19
19
## DESCRIPTION
@@ -41,7 +41,7 @@ Returns cubes of numbers passed via pipeline
41
41
Input number(s)
42
42
43
43
``` yaml
44
- Type : Int32 []
44
+ Type : Decimal []
45
45
Parameter Sets : (All)
46
46
Aliases :
47
47
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ function Get-Cube {
2
2
3
3
param (
4
4
[Parameter (Mandatory = $true , ValueFromPipeline = $true )]
5
- [int []]$Number
5
+ [decimal []]$Number
6
6
)
7
7
8
8
BEGIN {
Original file line number Diff line number Diff line change @@ -47,4 +47,8 @@ Describe "Proper $CommandName Functionality" {
47
47
3 , 4 | Get-Cube | Should - Be @ (27 , 64 )
48
48
}
49
49
50
+ It ' Accepts decimal numbers' {
51
+ Get-Cube 2.5 | Should - Be 15.625
52
+ }
53
+
50
54
}
Original file line number Diff line number Diff line change 20
20
<maml : Description >
21
21
<maml : para >Input number(s)</maml : para >
22
22
</maml : Description >
23
- <command : parameterValue required =" true" variableLength =" false" >Int32 []</command : parameterValue >
23
+ <command : parameterValue required =" true" variableLength =" false" >Decimal []</command : parameterValue >
24
24
<dev : type >
25
- <maml : name >Int32 []</maml : name >
25
+ <maml : name >Decimal []</maml : name >
26
26
<maml : uri />
27
27
</dev : type >
28
28
<dev : defaultValue >None</dev : defaultValue >
35
35
<maml : Description >
36
36
<maml : para >Input number(s)</maml : para >
37
37
</maml : Description >
38
- <command : parameterValue required =" true" variableLength =" false" >Int32 []</command : parameterValue >
38
+ <command : parameterValue required =" true" variableLength =" false" >Decimal []</command : parameterValue >
39
39
<dev : type >
40
- <maml : name >Int32 []</maml : name >
40
+ <maml : name >Decimal []</maml : name >
41
41
<maml : uri />
42
42
</dev : type >
43
43
<dev : defaultValue >None</dev : defaultValue >
You can’t perform that action at this time.
0 commit comments