generate tksl script with given number of decimal digits