:orphan:
# PetscIsInfReal
Returns whether the `PetscReal` input is an infinity value. 
## Synopsis
```
#if defined(PETSC_USE_REAL___FLOAT128)
PetscBool PetscIsInfReal(PetscReal a)
```

## Input Parameter

- ***a -*** the floating point number





## Developer Notes
Uses the C99 standard `isinf()` on systems where it exists.

Otherwise uses (a && a/2 == a), note that some optimizing compilers compile out this form, thus removing the check.


## See Also
 `PetscIsNormalReal()`, `PetscIsNanReal()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/mathinf.c.html#PetscIsInfReal">src/sys/utils/mathinf.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/mathinf.c)


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