FPCLASSIFY(3P)
π FPCLASSIFY(3P) π
okay bestie, welcome to the POSIX Programmer's Manual entry for fpclassify β she's giving "classify real floating type" and she's lowkey a whole vibe. π¦
β¨ PROLOG β¨
so like, real talk first: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ (bestie, go consult the corresponding Linux manual page for the details on Linux behavior), or honestly the interface may just not be implemented on Linux at all. it's giving mystery. π
πΈ NAME πΈ
fpclassify β classify real floating type. periodt. that's the whole job. π
π SYNOPSIS π
#include <math.h>
int fpclassify(real-floating x);
like yes, that's it, that's the whole thing, she's compact and she knows it β¨
π DESCRIPTION π
so 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 β nobody's trying to start drama. this volume of POSIX.1β2017 defers to the ISO C standard. respect the hierarchy, bestie. π«Ά
the fpclassify() macro shall classify its argument value as:
NaN- infinite
- normal
- subnormal
- zero
- or into another implementation-defined category
okay and here's the order of operations, iykyk: first, an argument represented in a format wider than its semantic type is converted to its semantic type. then classification is based on the type of the argument. it's giving "narrow it down, then judge it." π
β RETURN VALUE β
the fpclassify() macro shall return the value of the number classification macro appropriate to the value of its argument. so like, you hand her a number, she hands you back the correct label. no cap, that's the whole relationship. π
π ERRORS π
No errors are defined.
and just so you know: the following sections are informative. not the law, just the lore. π
π EXAMPLES π
None.
(it's giving minimalism, and honestly? respect.) π
π§ APPLICATION USAGE π§
None.
π¦ RATIONALE π¦
None.
π FUTURE DIRECTIONS π
None.
π SEE ALSO π
isfinite()isinf()isnan()isnormal()signbit()
The Base Definitions volume of POSIX.1β2017, <math.h>
go read those too bestie, they're the friend group π
π₯ 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. 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 .
okay so pls do not come for me about typos β those were almost definitely added during the conversion to man page format, and there's a whole link above for reporting them. be nice. π
and that's the whole page, bestie!! this one came from IEEE/The Open Group, 2017 β FPCLASSIFY(3P), the one and only. slay, stay classified, and don't forget to narrow your semantic type before you judge. π
β¨π
π¦ 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