Skip to content

Add real implementation #1

@Pzixel

Description

@Pzixel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions