SymPy.jl icon indicating copy to clipboard operation
SymPy.jl copied to clipboard

rework round and trunc

Open jverzani opened this issue 3 years ago • 1 comments

This introduces these semantics for round and trunc

  • both pass on non real values
  • trunc and round return Sym objects (this is a change)
  • round only uses the digits argument.

jverzani avatar Jul 29 '22 23:07 jverzani

Codecov Report

Merging #473 (6dbebb0) into master (29c5bfd) will increase coverage by 0.58%. The diff coverage is 80.00%.

@@            Coverage Diff             @@
##           master     #473      +/-   ##
==========================================
+ Coverage   55.81%   56.39%   +0.58%     
==========================================
  Files          19       19              
  Lines        1179     1188       +9     
==========================================
+ Hits          658      670      +12     
+ Misses        521      518       -3     
Impacted Files Coverage Δ
src/generic.jl 54.79% <80.00%> (+11.04%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 29c5bfd...6dbebb0. Read the comment docs.

codecov-commenter avatar Jul 29 '22 23:07 codecov-commenter