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 4709537 commit 36a6feaCopy full SHA for 36a6fea
src/TracedRNumber.jl
@@ -159,3 +159,5 @@ for (jlop, hloop) in (
159
end
160
161
(::TypeCast{T})(x::TracedRNumber{T2}) where {T,T2} = promote_to(TracedRNumber{T}, x)
162
+
163
+Base.float(x::TracedRNumber{T}) where {T} = promote_to(TracedRNumber{float(T)}, x)
0 commit comments