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

ceil.3p (2949B)


  1. '\" et
  2. .TH CEIL "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. ceil,
  12. ceilf,
  13. ceill
  14. \(em ceiling value function
  15. .SH SYNOPSIS
  16. .LP
  17. .nf
  18. #include <math.h>
  19. .P
  20. double ceil(double \fIx\fP);
  21. float ceilf(float \fIx\fP);
  22. long double ceill(long double \fIx\fP);
  23. .fi
  24. .SH DESCRIPTION
  25. The functionality described on this reference page is aligned with the
  26. ISO\ C standard. Any conflict between the requirements described here and the
  27. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  28. .P
  29. These functions shall compute the smallest integral value not less than
  30. .IR x .
  31. .SH "RETURN VALUE"
  32. The result shall have the same sign as
  33. .IR x .
  34. .P
  35. Upon successful completion,
  36. \fIceil\fR(),
  37. \fIceilf\fR(),
  38. and
  39. \fIceill\fR()
  40. shall return the smallest integral value not less than
  41. .IR x ,
  42. expressed as a type
  43. .BR double ,
  44. .BR float ,
  45. or
  46. .BR "long double" ,
  47. respectively.
  48. .P
  49. If
  50. .IR x
  51. is NaN, a NaN shall be returned.
  52. .P
  53. If
  54. .IR x
  55. is \(+-0 or \(+-Inf,
  56. .IR x
  57. shall be returned.
  58. .SH ERRORS
  59. No errors are defined.
  60. .LP
  61. .IR "The following sections are informative."
  62. .SH EXAMPLES
  63. None.
  64. .SH "APPLICATION USAGE"
  65. The integral value returned by these functions need not be expressible
  66. as an
  67. .BR intmax_t .
  68. The return value should be tested before assigning it to an integer
  69. type to avoid the undefined results of an integer overflow.
  70. .P
  71. These functions may raise the inexact floating-point exception if the
  72. result differs in value from the argument.
  73. .SH RATIONALE
  74. None.
  75. .SH "FUTURE DIRECTIONS"
  76. None.
  77. .SH "SEE ALSO"
  78. .IR "\fIfeclearexcept\fR\^(\|)",
  79. .IR "\fIfetestexcept\fR\^(\|)",
  80. .IR "\fIfloor\fR\^(\|)",
  81. .IR "\fIisnan\fR\^(\|)"
  82. .P
  83. The Base Definitions volume of POSIX.1\(hy2017,
  84. .IR "Section 4.20" ", " "Treatment of Error Conditions for Mathematical Functions",
  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 .