custom-cards/flex-table-card

round decimal places

Closed this issue · 1 comments

How can I round or cut the decimal places of a sensor value?

image

As explained in the docs, you can use:

modify: parseFloat(x).toFixed(0)

in a column definition.

Having said that, I'm working on a feature to allow you to use Home Assistant's standard formatting, which includes the ability to set display precision on entities.