# try this in Python x = 1 / 3 xFormatted2 = "%.2f" % x xFormatted20 = "%.20f" % x print(xFormatted2, xFormatted20)