copysign(3) Library Functions Manual copysign(3) NOMBRE copysign, copysignf, copysignl - copian el signo de un numero BIBLIOTECA Biblioteca Matematica (libm, -lm) SINOPSIS #include 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 Caracteristicas para glibc (vease 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 DESCRIPCION 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. VALOR DEVUELTO 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. ERRORES No suceden errores. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |copysign(), copysignf(), | Seguridad del hilo | Multi-hilo seguro | |copysignl() | | | +-----------------------------+--------------------+-------------------+ VERSIONES On architectures where the floating-point formats are not IEEE 754 compliant, these functions may treat a negative zero as positive. ESTANDARES C11, POSIX.1-2008. This function is defined in IEC 559 (and the appendix with recommended functions in IEEE 754/IEEE 854). HISTORIAL C99, POSIX.1-2001, 4.3BSD. VEASE TAMBIEN signbit(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Sebastian Desimone , Gerardo Aburruzaga Garcia y Miguel Perez Ibars Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de Manual de Linux 6.8 2 Mayo 2024 copysign(3)