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

"float_precision" not displaying trailing zeroes #841

Open
4 tasks done
dewi-ny-je opened this issue Jan 4, 2025 · 0 comments
Open
4 tasks done

"float_precision" not displaying trailing zeroes #841

dewi-ny-je opened this issue Jan 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@dewi-ny-je
Copy link

Checklist

  • I updated the card to the latest version available
  • I cleared the cache of my browser
  • I verified that I'm really running the lastest version in my browser console
  • I checked if there is another issue opened with the same problem

Describe the bug
float_precision rounds as expected, but then omits trailing zeores

Version of the card
Version: 2.1.2

To Reproduce
This is the configuration I used:

type: custom:apexcharts-card
header:
  show: true
  show_states: true
series:
  - entity: sensor.fuel_prices_fuelprices_directlease_1561_devicetracker
# value: 1.899
    float_precision: 2

Screenshots
image

If I use
float_precision: 3 I get:

image

Expected behavior
It should show 1.90 and not 1.9 when set with float_precision: 2

Desktop (please complete the following information):

  • Browser chrome
  • Version 131
@dewi-ny-je dewi-ny-je added the bug Something isn't working label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant