ISINF(3POSIX)
π ISINF(3POSIX) π
okay bestie, so you found yourself in the POSIX Programmer's Manual β iconic. this is isinf, from the POSIX Programmer's Manual, and she's here to answer one (1) very important question: is this number literally infinity? β¨
πΈ PROLOG πΈ
ok so real talk before we start: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ (so like, go check the corresponding Linux manual page for the details of Linux behavior, fr), or honestly the interface might not even be implemented on Linux at all. π no cap.
β¨ NAME β¨
isinf β test for infinity π¦
π SYNOPSIS π
#include <math.h>
int isinf(real-floating x);
π DESCRIPTION π
bestie, listen. 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. periodt. π
the isinf() macro shall determine whether its argument value is an infinity (positive or negative, she doesn't discriminate, we love an inclusive queen). π«Ά
first things first: an argument represented in a format wider than its semantic type is converted to its semantic type. only then does the determination happen, and it's based on the type of the argument. so like, vibe check first, judgment second. π
π₯ RETURN VALUE π₯
the isinf() macro shall return a non-zero value if and only if its argument has an infinite value. that's it, that's the whole personality. β
π ERRORS π
no errors are defined. literally none. she's unbothered, moisturized, in her lane. π
the following sections are informative β aka the bonus content, the DVD extras, the lore. π
π EXAMPLES π
none. π€·ββοΈ
π§ APPLICATION USAGE π§
none. π€·ββοΈ
πΈ RATIONALE πΈ
none. π€·ββοΈ
π¦ FUTURE DIRECTIONS π¦
none. π€·ββοΈ (we love a consistent queen)
β SEE ALSO β
fpclassify()isfinite()isnan()isnormal()signbit()
and also, from the Base Definitions volume of POSIX.1β2017: <math.h> π
π COPYRIGHT π
ok so legally we have to say this and we're gonna say it with our whole chest:
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 β she's the final boss, the main character, the one who decides. no cap.
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 (rip, not us). to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html . π
and that's the whole page bestie!! this was brought to you by IEEE/The Open Group, way back in 2017, and honestly? they ate. mwah. π go check if your float is infinity and have the best day, ily!! πβ¨ππ¦πΈπ π«Ά
π¦ 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