One way of thinking about floating-point numbers is that they're never exactly equal. (This isn't completely true, of course, but it's not completely false, either.)
And if you think about it that way, then >
is the same as >=
, and <
is the same as <=
. So there's not much wrong with using >=
and <=
, except that the =
part might be unnecessary.
That is, for a given piece of code, if the "right" code would have involved >
, but you write >=
instead, the code probably won't fail, it will probably work just fine.
But this has been a rather general, handwavey answer. This whole answer was predicated on "If you think of floating-point numbers as never being equal", which as I said, isn't really correct. In particular, since floating-point numbers certainly can be exactly equal, there are certainly plenty of cases where a >=
comparison would work, and a >
comparison would give different results and would fail. So, in reality, you're usually going to have to think about each case more carefully.
But the bottom line is, while it's almost always wrong to use ==
and !=
with floating-point numbers, there's not nearly as big a prohibition against >=
and <=
. (But they might be wrong, or poor, so they're still worth thinking about.)