logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

isless.3p (3313B)


  1. '\" et
  2. .TH ISLESS "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. isless
  12. \(em test if x is less than y
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <math.h>
  17. .P
  18. int isless(real-floating \fIx\fP, real-floating \fIy\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The functionality described on this reference page is aligned with the
  22. ISO\ C standard. Any conflict between the requirements described here and the
  23. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  24. .P
  25. The
  26. \fIisless\fR()
  27. macro shall determine whether its first argument is less than its
  28. second argument. The value of
  29. .IR isless (\c
  30. .IR x ,
  31. .IR y )
  32. shall be equal to (\fIx\fR)\ <\ (\fIy\fR); however, unlike
  33. (\fIx\fR)\ <\ (\fIy\fR),
  34. .IR isless (\c
  35. .IR x ,
  36. .IR y )
  37. shall not raise the invalid floating-point exception when
  38. .IR x
  39. and
  40. .IR y
  41. are unordered.
  42. .SH "RETURN VALUE"
  43. Upon successful completion, the
  44. \fIisless\fR()
  45. macro shall return the value of (\fIx\fR)\ <\ (\fIy\fR).
  46. .P
  47. If
  48. .IR x
  49. or
  50. .IR y
  51. is NaN, 0 shall be returned.
  52. .SH ERRORS
  53. No errors are defined.
  54. .LP
  55. .IR "The following sections are informative."
  56. .SH EXAMPLES
  57. None.
  58. .SH "APPLICATION USAGE"
  59. The relational and equality operators support the usual mathematical
  60. relationships between numeric values. For any ordered pair of numeric
  61. values, exactly one of the relationships (less, greater, and equal) is
  62. true. Relational operators may raise the invalid floating-point
  63. exception when argument values are NaNs. For a NaN and a numeric value,
  64. or for two NaNs, just the unordered relationship is true. This macro
  65. is a quiet (non-floating-point exception raising) version of a
  66. relational operator. It facilitates writing efficient code that
  67. accounts for NaNs without suffering the invalid floating-point
  68. exception. In the SYNOPSIS section,
  69. .BR real-floating
  70. indicates that the argument shall be an expression of
  71. .BR real-floating
  72. type.
  73. .SH RATIONALE
  74. None.
  75. .SH "FUTURE DIRECTIONS"
  76. None.
  77. .SH "SEE ALSO"
  78. .IR "\fIisgreater\fR\^(\|)",
  79. .IR "\fIisgreaterequal\fR\^(\|)",
  80. .IR "\fIislessequal\fR\^(\|)",
  81. .IR "\fIislessgreater\fR\^(\|)",
  82. .IR "\fIisunordered\fR\^(\|)"
  83. .P
  84. The Base Definitions volume of POSIX.1\(hy2017,
  85. .IR "\fB<math.h>\fP"
  86. .\"
  87. .SH COPYRIGHT
  88. Portions of this text are reprinted and reproduced in electronic form
  89. from IEEE Std 1003.1-2017, Standard for Information Technology
  90. -- Portable Operating System Interface (POSIX), The Open Group Base
  91. Specifications Issue 7, 2018 Edition,
  92. Copyright (C) 2018 by the Institute of
  93. Electrical and Electronics Engineers, Inc and The Open Group.
  94. In the event of any discrepancy between this version and the original IEEE and
  95. The Open Group Standard, the original IEEE and The Open Group Standard
  96. is the referee document. The original Standard can be obtained online at
  97. http://www.opengroup.org/unix/online.html .
  98. .PP
  99. Any typographical or formatting errors that appear
  100. in this page are most likely
  101. to have been introduced during the conversion of the source files to
  102. man page format. To report such errors, see
  103. https://www.kernel.org/doc/man-pages/reporting_bugs.html .