formatNumber not working for Metric

I'm trying to format a number with leading 0's in a Canvas Metric element. In the expression editor I have:

| math "count"
| formatnumber format="0000"

It displays "count" just fine, but never with the leading 0's. If I change it to:

| math "count"
| formatnumber format="0000.0"

Then it adds the .0 just fine, but still does not add the leading 0's. So, I know that my formatnumber function is being invoked, but never formats the number with the leading zeros that I need.

Looks like an issue. You can use the following in your expression on the next line to add zeroes manually though.

| string "00" {context}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.