:orphan:
# PetscIsCloseAtTol
Returns whether the two `PetscReal` numbers are close at a given relative and absolute tolerances. 
## Synopsis
```
PetscBool PetscIsCloseAtTol(PetscReal a, PetscReal b, PetscReal rtol, PetscReal atol)
```

## Input Parameters

- ***a -*** first floating point number
- ***b -*** second floating point number
- ***rtol -*** relative tolerance
- ***atol -*** absolute tolerances





## Reference

- **** -*** https://www.python.org/dev/peps/pep-0485/



## See Also
 `PetscEqualReal()`, `PetscEqualScalar()`

## Level
beginner

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/mathclose.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)  
