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

Generate all prefixes units #11

Closed
haimkastner opened this issue Dec 31, 2019 · 1 comment
Closed

Generate all prefixes units #11

haimkastner opened this issue Dec 31, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@haimkastner
Copy link
Owner

haimkastner commented Dec 31, 2019

For example, most of the bit rate unit prefixes are not supported yet.

const prefixesFactor: { [key in Prefix]: number } = {
Exa: 1e18,
Peta: 1e15,
Tera: 1e12,
Giga: 1e9,
Mega: 1e6,
Kilo: 1e3,
Hecto: 1e2,
Deca: 1e1,
Deci: 1e-1,
Centi: 1e-2,
Milli: 1e-3,
Micro: 1e-6,
Nano: 1e-9,
Pico: 1e-12,
Femto: 1e-15,
};

Which doesn't contain the prefixes Kibi Mebi Gibi Tebi Pebi Exbi

@haimkastner haimkastner added the enhancement New feature or request label Dec 31, 2019
@haimkastner haimkastner self-assigned this Dec 31, 2019
haimkastner added a commit that referenced this issue May 18, 2024
haimkastner added a commit to haimkastner/unitsnet-py that referenced this issue May 18, 2024
haimkastner added a commit that referenced this issue May 18, 2024
haimkastner added a commit to haimkastner/unitsnet-py that referenced this issue May 18, 2024
@haimkastner
Copy link
Owner Author

Implemented by #43 & haimkastner/unitsnet-py#22

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