:orphan: # PetscApproximateGTE Performs a greater than or equal to on a given constant with a fudge for floating point numbers ## Synopsis ``` #include bool PetscApproximateGTE(PetscReal x,constant float) ``` Not Collective ## Input Parameters - ***x -*** the variable - ***b -*** the constant float it is checking if `x` is greater than or equal to ## Notes The fudge factor is the value `PETSC_SMALL` The constant numerical value is automatically set to the appropriate precision of PETSc so can just be provided as, for example, 3.2 This is used in several examples for setting initial conditions based on coordinate values that are computed with i*h that produces inexact floating point results. ## See Also `PetscMax()`, `PetscMin()`, `PetscAbsInt()`, `PetscAbsReal()`, `PetscApproximateLTE()` ## Level advanced ## Location include/petscmath.h --- [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)