ISGREATEREQUAL(3P)

πŸ’– ISGREATEREQUAL(3P) β€” the POSIX Programmer's Manual, bestie edition πŸ’–

okay so real quick, we're in the POSIX Programmer's Manual rn (ISGREATEREQUAL(3P), that's the one), and she's a classic ✨


🌸 PROLOG 🌸

bestie. listen. this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ β€” so like, consult the corresponding Linux manual page for details on Linux behavior β€” or honestly the interface might not even be implemented on Linux at all πŸ™ˆ no cap.


✨ NAME ✨

isgreaterequal β€” test if x is greater than or equal to y


πŸŽ€ SYNOPSIS πŸŽ€

#include <math.h>

int isgreaterequal(real-floating x, real-floating y);

πŸ¦‹ DESCRIPTION πŸ¦‹

the functionality described on this reference page is aligned with the ISO C standard. any conflict between the requirements described here and the ISO C standard is unintentional β€” not on purpose, we promise 🫢. this volume of POSIX.1‐2017 defers to the ISO C standard.

the isgreaterequal() macro shall determine whether its first argument is greater than or equal to its second argument. the value of isgreaterequal(x, y) shall be equal to (x) β‰₯ (y) β€” BUT, and this is the iconic part πŸ’…, unlike (x) β‰₯ (y), isgreaterequal(x, y) shall not raise the invalid floating-point exception when x and y are unordered. she's chill like that.


πŸ’œ RETURN VALUE πŸ’œ

upon successful completion, the isgreaterequal() macro shall return the value of (x) β‰₯ (y).

if x or y is NaN, 0 shall be returned. yep. zero. that's the whole vibe. πŸ“


πŸ’€ ERRORS πŸ’€

no errors are defined. literally none. she's not giving errors today, she's giving peace ✌️

the following sections are informative β€” meaning they're extra context, not requirements, iykyk.


🌈 EXAMPLES 🌈

None. β€” yeah bestie, there are no examples. we're all just out here raw-dogging the standard 😭


πŸ‘‘ APPLICATION USAGE πŸ‘‘

the relational and equality operators support the usual mathematical relationships between numeric values. for any ordered pair of numeric values, exactly one of the relationships (less, greater, and equal) is true. relational operators may raise the invalid floating-point exception when argument values are NaNs. for a NaN and a numeric value, or for two NaNs, just the unordered relationship is true.

this macro is a quiet (non-floating-point exception raising) version of a relational operator. it facilitates writing efficient code that accounts for NaNs without suffering the invalid floating-point exception. so like... she's the calm, collected version of the operator. main character energy, honestly.

in the SYNOPSIS section, real-floating indicates that the argument shall be an expression of real-floating type. important note, don't skip it 🫢


🧚 RATIONALE 🧚

None. β€” no reasoning provided, she simply is πŸ’…


⭐ FUTURE DIRECTIONS ⭐

None. β€” the future is bright and also, apparently, empty. but cute. πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

  • isgreater()
  • isless()
  • islessequal()
  • islessgreater()
  • isunordered()

and also! the Base Definitions volume of POSIX.1‐2017, <math.h> β€” go read it bestie, it's giving essential πŸŽ€


portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.

in the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. that's the one that wins, periodt. the original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


not me accidentally introducing a typo during file conversion 😭 if you see one, that's the conversion's fault, not the Standard's, fr fr.

and that's the whole page, bestie!! πŸ¦‹ written up by IEEE/The Open Group, dated 2017, under the manual tag ISGREATEREQUAL(3P). go forth and compare your floats without fear of invalid exceptions. slay βœ¨πŸ’–

πŸ“¦ where this page comes from