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

uconvertp/uconvertrp fail to convert dimensionless quantities to Gain #727

Open
sostock opened this issue May 31, 2024 · 0 comments
Open
Labels
logarithmic logarithmic scales (decibels, nepers, …)

Comments

@sostock
Copy link
Collaborator

sostock commented May 31, 2024

The following should return -60dB, since 1mm/m == 0.001:

julia> uconvertrp(u"dB", 1.0u"mm/m")
ERROR: 1.0 is not obviously a ratio of power or root-power quantities; use `uconvertrp` or `uconvertp` instead.
[]

The error message is even saying that one should use uconvertrp or uconvertp, even though that is what was used.

@sostock sostock added the logarithmic logarithmic scales (decibels, nepers, …) label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logarithmic logarithmic scales (decibels, nepers, …)
Projects
None yet
Development

No branches or pull requests

1 participant