I'm doing a very basic script of sorting an employee CSV file, and renaming a couple of the fields. Easy stuff, but now I'm supposed to add a column at the end and show what the employee's 6% bonus would be. So I'm using this entry:
@{label='Bonus';expression={$_.Salary * .06}}
However..it just returns nothing. The field is blank. If I change it to show the bonus plus the salary...
@{label='BonusSalary';expression={$_.Salary * 1.06}}
It returns the Salary value, like I multiplied by one. Now if I change the operator to anything OTHER than multiplication, it works fine.
Can someone point me in the right direction to find out why it's doing this?