:orphan: # PetscSign Returns the sign of a number as an integer ## Synopsis ``` #include int PetscSign(type v) ``` Not Collective ## Input Parameter - ***v -*** the number ## Note The type can be integer or real floating point value ## See Also `PetscAbsInt()`, `PetscAbsReal()`, `PetscAbsScalar()` ## Level beginner ## Location include/petscmath.h ## Examples src/ts/utils/dmplexlandau/tutorials/ex1.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscmath.h) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)