Hi I'm using sympy to solve some equations and it gives me output like this.
{P1: 30.0000000000000, P2: 60.0000000000000}
1.40765765765766e-18*x**4 - 5.63063063063063e-15*x**3 + 1.40765765765766e-11*x**2 - 5.63063063063063e-9*x - 1.87687687687688e-7
I need it to use zero decimal points if the number was allready an Integer so it become like
{P1: 30, P2: 60} and if the numbers was none Integer It get round to two decimal points
1.4e-18*x**4 - 5.63e-15*x**3 + 1.4e-11*x**2 - 5.63e-9*x - 1.87e-7