Skip to content

Commit

Permalink
Merge pull request #1218 from oscardssmith/patch-1
Browse files Browse the repository at this point in the history
add promote between `BigFloat` and `Num`
  • Loading branch information
ChrisRackauckas authored Aug 13, 2024
2 parents 3c2168a + 2311288 commit 85c049f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/num.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ import SymbolicUtils: <ₑ, Symbolic, Term, operation, arguments
Base.show(io::IO, n::Num) = show_numwrap[] ? print(io, :(Num($(value(n))))) : Base.show(io, value(n))

Base.promote_rule(::Type{<:Number}, ::Type{<:Num}) = Num
Base.promote_rule(::Type{BigFloat}, ::Type{<:Num}) = Num
Base.promote_rule(::Type{<:Symbolic{<:Number}}, ::Type{<:Num}) = Num
function Base.getproperty(t::Union{Add, Mul, Pow, Term}, f::Symbol)
if f === :op
Expand Down

0 comments on commit 85c049f

Please sign in to comment.