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

Add SI unit prefixes in parts parameters #598

Open
mdiepart opened this issue Apr 17, 2024 · 0 comments
Open

Add SI unit prefixes in parts parameters #598

mdiepart opened this issue Apr 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mdiepart
Copy link
Contributor

This is a feature request that should allow for better comparisons and research among the components in the database.
Let's take capacitors as an example. A 100nF capacitor could be registered as a 0.1 uF capacitor or a 100 nF capacitor. The exact value is the same but the representation is different. Thus, when saving the capacitance as a parameter, we could have : value 0.1, unit uF or value 100 unit nF. The goal of this feature would be to support SI unit prefixes such that we would enter either : value 0.1u unit F or value 100n unit F. Both would give the same result once saved in the database (saved as value 0.0000001 unit F).

One possibility is to add a checkbox next to the unit field. When ticked, it would mean that the unit supports SI prefixes and would enable the possibility to use SI prefixes in the various value fields.

The current alternative would be to either express all the capacitors as a multiple of the smallest value possible (i.e. store all capacitors as multiples of fF). This would quickly become impractical especially when dealing with i.e. 1000000000 fF for 1 uF.

I tried to look into the code but I'm not fluent at all in PHP and the symfony framework. I can help if needed or I can try to implement a first version if given explicit steps of what to do.

@mdiepart mdiepart added the enhancement New feature or request label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant