-
Notifications
You must be signed in to change notification settings - Fork 29
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
dBm is missing #103
Comments
In general, dB{anyunit} (and plain unitless dB) would be nice but potentially challenging to handle. One would need to handle addition (dB{someunit} + dB{someotherunit} yields dB{someunit*someotherunit}) and probably forbid multiplication. Unit conversions from/to log units should be straightforward, but I suspect they might look confusing with standard operator precedence. It might also be nice to actually handle B and {otherSIprefix}B, but OTOH I've nearly never saw those used. |
Yeah, it will require being handled specially in the syntax and come with a special data type. It will be similar to how temperatures (acting as postfix operators) and datetimes (acting as a special data type) are handled. The nice thing is that once this special handling is added, it will be possible to reuse it for other non-linear scales, like pH and the Richter scale. |
Do you have in mind making another variant of Value or extending Number? |
unit of power
https://en.wikipedia.org/wiki/DBm
The text was updated successfully, but these errors were encountered: