:orphan: # PetscDTFactorialInt Compute n! as an integer ## Input Parameter - ***n -*** a non-negative integer ## Output Parameter - ***factorial -*** n! ## Note This is limited to n such that n! can be represented by `PetscInt`, which is 12 if `PetscInt` is a signed 32-bit integer and 20 if `PetscInt` is a signed 64-bit integer. ## See Also `PetscDTFactorial()`, `PetscDTBinomialInt()`, `PetscDTBinomial()` ## Level beginner ## Location include/petscdt.h --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscdt.h) [Index of all DT routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)