More simply, you can test with
>>> "{:.60f}".format(1/3)
'0.333333333333333314829616256247390992939472198486328125000000'
It's not just a problem of PI, but common in all float
type. You may find more information from Limiting floats to two decimal points.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…