superpi icon indicating copy to clipboard operation
superpi copied to clipboard

Add real implementation

Open Pzixel opened this issue 6 years ago • 0 comments

Current implementation uses doubles to calculate PI:

https://github.com/Fewlaps/superpi/blob/37f0f138147a386c2cd21451f96463e5c618ec5f/src/main/java/com/fewlaps/superpi/PiCalculator.java#L11-L14

however, as you probably know double has precision of 15-17 decimal numbers (see wiki). So your code actually is not able to calculate more digits, and therefore it doesn't actually implement superpi algorithm.

I propose to implement it correctly.

Pzixel avatar Jul 10 '18 18:07 Pzixel