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 get the desired result? It appears that round is a 
buggy.

Also, I noticed, that Integer(sqrt(101010101).evalf(3)) gives 10050, while 
(sqrt(101010101).evalf(3) gives 10100.

Is it expected behaviour?

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/4ff6aa54-d105-4259-8bda-1527439b3a83n%40googlegroups.com.

Reply via email to