Skip to content

Factorial calculations problem #186

@wojofree

Description

@wojofree

For factorial calculations, when the value is greater than Double(Int.largestSupportedIntegerFactorial) but less than Double(Int.max), the current implementation uses a direct for-loop, which can cause the process to hang for large numbers.
It would be better to return infinity directly for values ≥ 172.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions