The value of the number pi has been calculated to a new world record length of 31 trillion digits, far past the previous record of 22 trillion, the *BBC* reports.

Emma Haruka Iwao, a Google employee from Japan, found the new digits with the help of the company's cloud computing service.

Pi is the number you get when you divide a circle's circumference by its diameter.

The first digits, 3.14, are well known but the number is infinitely long.

Extending the known sequence of digits in pi is very difficult because the number follows no set pattern.

Pi is used in engineering, physics, supercomputing and space exploration - because its value can be used in calculations for waves, circles and cylinders.

The pursuit of longer versions of pi is a long-standing pastime among mathematicians. And Ms Iwao said she had been fascinated by the number since she had been a child.

The calculation required 170TB of data and took 25 virtual machines 121 days to complete.

March 14 or 3/14 is celebrated as pi day because of the first 3.14 are the first digits of pi.