How to replace approximate real numbers near zero in expression with exact integer 0?

Sometimes we have very small coefficients in symbolic operations.
syms x y
y = sin(pi)*x;
The result is
y =(4967757600021511*x)/40564819207303340847894502572032
How to replace approximate real numbers near zero in expression with exact integer 0?

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!