Ask Your Question

# Revision history [back]

### 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?