# Fix comparing float number with integer issue

**URL:** <https://fortran-lang.discourse.group/t/fix-comparing-float-number-with-integer-issue/3882>\
**Category:** Uncategorized\
**Created:** [July 1, 2022, 5:47am UTC](https://fortran-lang.discourse.group/t/fix-comparing-float-number-with-integer-issue/3882 "2022-07-01T05:47:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mecej4](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/mecej4/32/855_2.png) [@mecej4](https://fortran-lang.discourse.group/u/mecej4)\
**Post date:** [July 1, 2022, 3:40pm UTC](https://fortran-lang.discourse.group/t/fix-comparing-float-number-with-integer-issue/3882/9 "2022-07-01T15:40:28Z")

</div>

@RonShepard provides a good discussion of why some thought should go into the selection of special/magic values such as -99, which is more of a signature with a cryptic meaning than the value itself. The author of a code that uses such special values must make a good effort to document the purpose and usage of the special value. Otherwise, it can become a big mystery, as @JacobWilliams [demonstrated in a recent thread](https://fortran-lang.discourse.group/t/fun-with-40-year-old-code/3726) here.

---

_[View the full topic](https://fortran-lang.discourse.group/t/fix-comparing-float-number-with-integer-issue/3882)._
