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

copysign.3p (2458B)


  1. '\" et
  2. .TH COPYSIGN "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. copysign,
  12. copysignf,
  13. copysignl
  14. \(em number manipulation function
  15. .SH SYNOPSIS
  16. .LP
  17. .nf
  18. #include <math.h>
  19. .P
  20. double copysign(double \fIx\fP, double \fIy\fP);
  21. float copysignf(float \fIx\fP, float \fIy\fP);
  22. long double copysignl(long double \fIx\fP, long double \fIy\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 produce a value with the magnitude of
  30. .IR x
  31. and the sign of
  32. .IR y .
  33. On implementations that represent a signed zero but do not treat
  34. negative zero consistently in arithmetic operations, these functions
  35. regard the sign of zero as positive.
  36. .SH "RETURN VALUE"
  37. Upon successful completion, these functions shall return a value with
  38. the magnitude of
  39. .IR x
  40. and the sign of
  41. .IR y .
  42. .SH ERRORS
  43. No errors are defined.
  44. .LP
  45. .IR "The following sections are informative."
  46. .SH EXAMPLES
  47. None.
  48. .SH "APPLICATION USAGE"
  49. None.
  50. .SH RATIONALE
  51. None.
  52. .SH "FUTURE DIRECTIONS"
  53. None.
  54. .SH "SEE ALSO"
  55. .IR "\fIsignbit\fR\^(\|)"
  56. .P
  57. The Base Definitions volume of POSIX.1\(hy2017,
  58. .IR "\fB<math.h>\fP"
  59. .\"
  60. .SH COPYRIGHT
  61. Portions of this text are reprinted and reproduced in electronic form
  62. from IEEE Std 1003.1-2017, Standard for Information Technology
  63. -- Portable Operating System Interface (POSIX), The Open Group Base
  64. Specifications Issue 7, 2018 Edition,
  65. Copyright (C) 2018 by the Institute of
  66. Electrical and Electronics Engineers, Inc and The Open Group.
  67. In the event of any discrepancy between this version and the original IEEE and
  68. The Open Group Standard, the original IEEE and The Open Group Standard
  69. is the referee document. The original Standard can be obtained online at
  70. http://www.opengroup.org/unix/online.html .
  71. .PP
  72. Any typographical or formatting errors that appear
  73. in this page are most likely
  74. to have been introduced during the conversion of the source files to
  75. man page format. To report such errors, see
  76. https://www.kernel.org/doc/man-pages/reporting_bugs.html .