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 π
π COPYRIGHT π
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
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms