You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import decimal
|
|
|
|
d = decimal.Decimal('00.26598')
|
|
print("Original Number : ",d)
|
|
for i in range(1, 5):
|
|
decimal.getcontext().prec = i
|
|
print("Precision-",i, ':', d * 1) |