JuliaPhysics / JuliaPhysics/Unitful.jl
Negating Gains
Open
logarithmic
- Dominant language
- Julia
- Stars
- 675
- Forks
- 124
- Avg merge
- 3h 38m
- Merged PRs (30d)
- 1
Description
Is it intentional that this works (`-2u"dB"`), and this works (`0u"dB" - 2u"dB"`) but not this (`-(2u"dB")`) nor (`-uconvertp(u"dB", 2)`) nor this (`-uconvertrp(u"dB", 2)`)?
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is named. Start by reproducing the three negation cases in Julia and trace how unary negation interacts with unitful quantities and conversions. Done means either making the unsupported forms behave consistently with the working forms, with regression coverage, or documenting why the difference is intentional.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100