ISNORMAL(3POSIX)
π ISNORMAL(3POSIX) β the POSIX Programmer's Manual one π
okay bestie, welcome to the POSIX Programmer's Manual entry for isnormal, and yes it lives in section 3POSIX because that's just how the girls do it. πΈ
β¨ PROLOG β¨
so like, real talk first π«Ά β this manual page is part of the POSIX Programmer's Manual. But heads up: the Linux implementation of this interface may differ, so if you're on Linux you should go consult the corresponding Linux manual page for the details of how Linux actually behaves. Or β plot twist β the interface might not even be implemented on Linux at all. π iykyk.
π NAME π
isnormal β the girl whose whole job is testing for a normal value π
π SYNOPSIS π
#include <math.h>
int isnormal(real-floating x);
she's a macro, she's short, she's iconic. periodt.
π¦ DESCRIPTION π¦
okay so first things first, the functionality described on this reference page is aligned with the ISO C standard. If anything here conflicts with the requirements in the ISO C standard, that conflict is unintentional β no drama intended. And this volume of POSIX.1β2017 defers to the ISO C standard, so like, the ISO C standard is the main character here. π
now the actual tea β: the isnormal() macro shall determine whether its argument value is normal β and "normal" means it's neither zero, subnormal, infinite, nor NaN. that's the whole vibe check. β¨
first, an argument that's represented in a format wider than its semantic type gets converted to its semantic type. then the determination is based on the type of the argument. so it's convert first, judge second. π§
β RETURN VALUE β
the isnormal() macro shall return a non-zero value if and only if its argument has a normal value. no in-between, no maybe, it's giving binary. π
π ERRORS π
No errors are defined. (she simply does not do errors, bestie π«Ά)
the following sections are informative. so like, they're the bonus content, not the rules. π
π EXAMPLES π
None.
(i know, i know, we were all hoping for a lil demo π but there's literally none here.)
πΈ APPLICATION USAGE πΈ
None.
π₯ RATIONALE π₯
None.
π FUTURE DIRECTIONS π
None.
π SEE ALSO π
fpclassify()isfinite()isinf()isnan()signbit()
and also, from the Base Definitions volume of POSIX.1β2017:
<math.h>
the whole friend group, fr fr. π«Ά
π COPYRIGHT π
okay legal era, gotta be precise here bestie, no paraphrasing allowed:
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 .
β οΈ also a lil reminder from the top of the page: this manual page is part of the POSIX Programmer's Manual, and the Linux implementation of this interface may differ β so consult the corresponding Linux manual page for details of Linux behavior, or accept that the interface may not be implemented on Linux. no cap.
and that's the whole page, bestie π slay, you read a manpage, main character behavior honestly. this lil masterpiece came to you from IEEE/The Open Group, dated 2017, filed under ISNORMAL(3POSIX). go forth and vibe check your floats. πβ¨π
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms