Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python use getcontext

from decimal import getcontext, Decimal

ctx=getcontext()
num=Decimal('1.1')
num**4  //Decimal('1.4641')
ctx.prec=4  //Set new precision
print(num**4)
 
PREVIOUS NEXT
Tagged: #python #getcontext
ADD COMMENT
Topic
Name
9+7 =