Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

round decimal places #138

Closed
nuki47 opened this issue May 10, 2024 · 1 comment
Closed

round decimal places #138

nuki47 opened this issue May 10, 2024 · 1 comment

Comments

@nuki47
Copy link

nuki47 commented May 10, 2024

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

image
@EdLeckert
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants