How can I convert a Decimal String value to an Integer/Float?
For example... I have a string called 'StringDuration' that is 0.27. How can I convert this string to a Float?
I have tried...
@{float(variables('StringDuration'))}
but it gives the error "The variable 'StringDuration' of type 'Integer' cannot be initialized or updated with value '0.27' of type 'Float'. The variable 'StringDuration' only supports values of types 'Integer'."
If I try...
@{int(variables('StringDuration'))}
It gives the error "Unable to process template language expressions in action 'StringDuration' inputs at line '1' and column '2258': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'."
How can I convert a String Decimal to a Float?