Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Correct way to get an exact number of decimal digits (after the point)

If I type in

a = numerical_approx(1/14, digits=7)
print a
b=1/14
print b.n(digits=7)

I get

0.07142857
0.07142857

I count 8 digits after the point.
I wonder: How to get 7 digits as declared?