Aug-22-2019, 08:27 AM
Thank you, but in these examples you convert the float in decimal, while i would to have a variable with a arbitrary precision.
my needs are similar to this:
dec_value= myvalue
dec_value.setPrecision(2)
do some stuff
print dec_value.getPrecision()
and it gives me "2"
my needs are similar to this:
dec_value= myvalue
dec_value.setPrecision(2)
do some stuff
print dec_value.getPrecision()
and it gives me "2"