@@ -72,7 +72,7 @@ Class Calculator {
7272 }
7373}
7474
75- Function SimpleCalc {
75+ Function Invoke-CustomCalculator {
7676 <#
7777 . SYNOPSIS
7878 Simple calculator that shows how to use class.
@@ -90,15 +90,15 @@ Function SimpleCalc {
9090 NotMandatory - specifies whether to calculate percentage. If specified, the value of RightOperand should be considered as percentage of LeftOperand.
9191
9292 . EXAMPLE
93- SimpleCalc -Operation Add -LeftOperand 4 -RightOperand 4
94- SimpleCalc -Operation Subtract -LeftOperand 64 -RightOperand 48
95- SimpleCalc -Operation Multiply -LeftOperand 4 -RightOperand 8
96- SimpleCalc -Operation Remainder -LeftOperand 10 -RightOperand 3
97- SimpleCalc -Operation Divide -LeftOperand 512 -RightOperand 8
98- SimpleCalc -Operation Average -LeftOperand 56 -RightOperand 200
99- SimpleCalc -Operation Power -LeftOperand 8 -RightOperand 3
100- SimpleCalc -Operation Percentage -LeftOperand 1600 -Percentage 64
101- SimpleCalc -Operation Modulus -LeftOperand 20048 -RightOperand 3000
93+ Invoke-CustomCalculator -Operation Add -LeftOperand 4 -RightOperand 4
94+ Invoke-CustomCalculator -Operation Subtract -LeftOperand 64 -RightOperand 48
95+ Invoke-CustomCalculator -Operation Multiply -LeftOperand 4 -RightOperand 8
96+ Invoke-CustomCalculator -Operation Remainder -LeftOperand 10 -RightOperand 3
97+ Invoke-CustomCalculator -Operation Divide -LeftOperand 512 -RightOperand 8
98+ Invoke-CustomCalculator -Operation Average -LeftOperand 56 -RightOperand 200
99+ Invoke-CustomCalculator -Operation Power -LeftOperand 8 -RightOperand 3
100+ Invoke-CustomCalculator -Operation Percentage -LeftOperand 1600 -Percentage 64
101+ Invoke-CustomCalculator -Operation Modulus -LeftOperand 20048 -RightOperand 3000
102102
103103 . NOTES
104104 v0.6.5
0 commit comments