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

feature: Add support for Float kind of Attribute or edit Number #1945

Open
BeArchiTek opened this issue Jan 16, 2024 · 3 comments
Open

feature: Add support for Float kind of Attribute or edit Number #1945

BeArchiTek opened this issue Jan 16, 2024 · 3 comments
Labels
type/feature New feature or request type/user-centric Issue that would improve the overall experience of our users

Comments

@BeArchiTek
Copy link
Contributor

Component

API Server / GraphQL

Describe the Feature Request

Add a new kind of Attribute to support Float

Describe the Use Case

Be able to store float type of number

Example 1: a device is 7,7 kg, I would like to be able to set 7,7 kg and not be force to either set 8 kg or 770 gr
Example 2: a device is 1.5 U of height, I would like to be able to have to put 2U. (on a 48U rack it's 32 devices instead of 24)

Additional Information

No response

@BeArchiTek BeArchiTek added type/feature New feature or request type/user-centric Issue that would improve the overall experience of our users labels Jan 16, 2024
@opsmill-bot opsmill-bot added the state/ref This issue is referenced in our internal tooling label Jan 16, 2024
@ogenstad
Copy link
Contributor

We are using Number internally in a few places but it would probably make most sense to change all those instances to Integer instead, remove Number and create a new Float. Number doesn't really tell us anything about about the actual type.

@BeArchiTek
Copy link
Contributor Author

https://pypi.org/project/unitconvert
https://pypi.org/project/unit-convert

Related topic, conversion between unit (gram <-> Kgram or Kb <-> Mb <-> Gb)

Copy link

[From BeArchiTek]

I need to be able to use float to modelize DWDM frequency/wavelength

@dgarros dgarros removed the state/ref This issue is referenced in our internal tooling label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature New feature or request type/user-centric Issue that would improve the overall experience of our users
Projects
None yet
Development

No branches or pull requests

4 participants