We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dfdd69 commit fbe6810Copy full SHA for fbe6810
src/chainrules.jl
@@ -12,7 +12,7 @@ end
12
13
function (projector::ProjectTo{<:Quantity})(x::Number)
14
new_val = projector.project_val(ustrip(x))
15
- return new_val*x
+ return new_val*unit(x)
16
end
17
18
# Project Unitful Quantities onto numerical types by projecting the value and carrying units
0 commit comments