sqrt(101010101).round(-2) gives 10100 as expected. The docstring
states that it does decimal rounding, although I haven't played with
it enough to confirm if this is actually the case.
I think we should add some flags to the round() method. It would be
useful to control whether the rounding is
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
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