Skip to content

Rounding #4

@PBrdng

Description

@PBrdng

Hi, would it be possible to include a function like this one:

import Base: round
function round(f::Polynomial{true,T}, s::Int) where {T<:Number}
    sum([round(coefficient(f[i]),s) * monomial(f[i]) for i in 1:length(f)])
end

(or maybe a more clever implementation that does this). Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions