Hey everyone,
I'm working on a project and need to display an array of prices in an html table formatted correctly. I've read about the formatNumber function which seems to convert a value to a specified currency. When trying to utilize this function I've run into a compile error.
What I want to do is : formatNumber(item()?['Prices'], 'C2','en-US') but get the following error message: 'The template language function 'formatNumber' expects its first parameter to be an integer or a decimal number. The provided value is of type 'String'.
I've tried to convert to an integer and float but had no luck. Was wondering if I could get some input.
Cheers.