:orphan:
# PetscDTFactorial
Approximate n! as a real number 
## Input Parameter

- ***n -*** a non-negative integer



## Output Parameter

- ***factorial -*** n!





## See Also
 `PetscDTFactorialInt()`, `PetscDTBinomialInt()`, `PetscDTBinomial()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscdt.h.html#PetscDTFactorial">include/petscdt.h</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/tutorials/ex26.c.html">src/dm/tutorials/ex26.c</A><BR>


---
[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)  
