Hi @Mike Kiser ,
Thanks for reaching out.
As per your description, I assume your variable variables('VirtualHours')
is a string type , if that is the case then please try --> @sub(100, int(variables('VirtualHours')))
.
As the function sub
expects its parameters to be an integer or a decimal number, you will have to convert the parameter value of type String
to int
.
In case if you are storing/assigning the output of this expression to a string type variable/parameter then please try this expression --> @string(sub(100, int(variables('VirtualHours'))))
.
Hope this helps. Do let us know how it goes.
Thanks
----------
Please don’t forget to Accept Answer
and Up-Vote
wherever the information provided helps you, this can be beneficial to other community members.