Skip to content

Commit 9d049da

Browse files
committed
withUnit: do not even attempt broadcasted multiplication
This function itself should be called in a broadcasted manner, if broadcasting is desired.
1 parent 3bf342b commit 9d049da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/methods.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ function withUnit(targetUnit, value)
619619

620620
if Unitful.dimension(value) == Unitful.NoDims
621621

622-
value .* targetUnit
622+
value * targetUnit
623623

624624
else
625625

0 commit comments

Comments
 (0)