# PetscEqualReal
Returns whether the two real values are equal. 
## Synopsis
```
PetscBool PetscEqualReal(PetscReal a, PetscReal b)
```

## Input Parameters

- ***a -*** first real number
- ***b -*** second real number



## Note
Equivalent to "a == b". Should be used to prevent compilers from
emitting floating point comparison warnings (e.g. GCC's -Wfloat-equal flag)
in PETSc header files or user code.




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

## Level
developer

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


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


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
