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

round

Open jverzani opened this issue 3 years ago • 0 comments

This came up in https://discourse.julialang.org/t/how-to-round-whole-matrix-like-numpy-round/84897

What should be the proper semantics of round for Sym objects:

  • sympy.round() fails on symbolic objects (seems excessive, but what should the result of round(x) be? Could be a delayed call or just x
  • sympy.round() only supports digits, not sigdigits or base, as Base.round
  • sympy.round() does not support rounding modes

jverzani avatar Jul 29 '22 23:07 jverzani