copysign, copysignf, copysignl - copian el signo de un número
Biblioteca Matemática (libm, -lm)
#include <math.h>
double copysign(double x, double y);
float copysignf(float x, float y);
long double copysignl(long double x, long double y);
Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):
copysign(), copysignf(), copysignl():
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
|| /* Desde glibc 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
These functions return a value whose absolute value matches that of x, but whose sign bit matches that of y.
For example, copysign(42.0, -1.0) and copysign(-42.0, -1.0) both return -42.0.
On success, these functions return a value whose magnitude is taken from x and whose sign is taken from y.
If x is a NaN, a NaN with the sign bit of y is returned.
No suceden errores.
Para obtener una explicación de los términos usados en esta sección, véase attributes(7).
C99, POSIX.1-2001, POSIX.1-2008. Esta función está definida en IEC 559 (y en el apéndice con funciones recomendadas de IEEE 754/IEEE 854).
On architectures where the floating-point formats are not IEEE 754 compliant, these functions may treat a negative zero as positive.
La traducción al español de esta página del manual fue creada por Sebastian Desimone <chipy AT argenet DOT com DOT ar>, Gerardo Aburruzaga García <gerardo DOT aburruzaga AT uca DOT es> y Miguel Pérez Ibars <mpi79470 AT alu DOT um DOT es>
Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.
Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish.