The Workflow seems to be calculating the numbers just fine. But it returns the value as a string instead of a number. I am getting the warning message:
Invalid Numeric Value: Expression: %(LaborHours_Reg) + %(LaborHours_OT)*1.5 + %(LaborHours_DT)*2
Now each of these are tokens all set to Number, as well as the field being warned on running the calculation 'LaborHoursTotal'
The warning only exists when I pass an integer through as values.
No Warning Run Example:
%(LaborHours_Reg) = 4.00 %(LaborHours_OT) = 1.00 %(LaborHours_DT) = 0.00
Warning Run Example:
%(LaborHours_Reg) = 4 %(LaborHours_OT) = 1 %(LaborHours_DT) = 0.00
The return value is a string and my guess is that this invalid numeric is due to calculating integers where a float or decimal value is expected.
Is there a way to allow both or one step better. Always convert value to decimal or float at calculation?