News for hackers. Stuff that matters.
Re:A Million Digits of Pi in 9 Lines of JavaScript by hsnewman on Thursday September 12, 2019 @03:04PM (#20955123)
The article says: let i = 1n; let x = 3n * (10n 1000020n); let pi = x; while (x > 0) { x = x * i / ((i + 1n) * 4n); pi += x / (i + 2n); i += 2n; } console.log(pi / (10n 20n));

There are no comments on this comment yet.