0

I tried to format the HTML Table below for the number Number

This is the expression that I used:

formatNumber(int(item()?['Trans Amt']), '0,0.00', 'en-us')

However, it gives an error message as below. Error Messge

The numbering format expectation is as follows "100,000.00" Thank you.

2
  • Are they all int? If not you will get this error. Try decimal(...) or float(...) as an alternative.
    – Sam Nseir
    Commented Aug 28, 2024 at 6:52
  • it works perfectly! thank you
    – Novia
    Commented Aug 29, 2024 at 9:32

1 Answer 1

0

The error expression likely due to incorrect usage of int() and formatNumber() converting the value to an integer you should ensure your are formatting the number correctly.

like,

formatNumber(float(item()?[Trans Amt]),'0,0.00',en-us)

float(item()?[Trans Amt]) - this converts the value to a floating-point number

formatNumber() - this formats the number according to the pattern '0,0.00'

1
  • it works perfectly! thank you
    – Novia
    Commented Aug 29, 2024 at 9:32

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.