Re: [sympy] evalf and Integer

2021-08-01 Thread Oscar Benjamin
On Sun, 1 Aug 2021 at 11:02, Paul Royik wrote: > > For a given number, I want to approximate it to 5 decimal points. > If a number of digits in the integer part is greater than 7, then round to 7 > significant figures. What does "round" mean here? Do you want to round to nearest, or round

[sympy] evalf and Integer

2021-08-01 Thread Paul Royik
For a given number, I want to approximate it to 5 decimal points. If a number of digits in the integer part is greater than 7, then round to 7 significant figures. What I noticed is that evalf doesn't approximate to decimal points, it evaluates to significant figures. What should I apply to