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

Meter Component - Rounding precision display bug #112

Open
the-other-dev opened this issue Jan 9, 2025 · 1 comment
Open

Meter Component - Rounding precision display bug #112

the-other-dev opened this issue Jan 9, 2025 · 1 comment

Comments

@the-other-dev
Copy link

Extension

Meter Component

Describe the Bug

When configuring a meter with min value 0 and max value 100 and the actual value is 7, then the meter value shown is 7.000000000000001%.

Is it possible to format that meter value by specifying the precision?

To Reproduce

  1. Install meter component extension
  2. Create collection
  3. Create integer field and set display to "meter" with min value 0 and max value 100
  4. Create item in that collection with integer field value 7
  5. Go to overview of the collection and the meter value is shown as 7.000000000000001%

Directus Version

v11.3.5

Hosting Strategy

Self-Hosted (Docker Image)

Copy link

linear bot commented Jan 9, 2025

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

No branches or pull requests

1 participant