Skip to content

Factorial calculations problem #186

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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