.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de) .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk .\" .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" .\" Based on glibc infopages, copyright Free Software Foundation .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH signbit 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE signbit \- comprueba el signo de un número real en coma flotante .SH BIBLIOTECA Biblioteca Matemática (\fIlibm\fP, \fI\-lm\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBint signbit(\fP\fIx\fP\fB);\fP .fi .PP .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .PP \fBsignbit\fP(): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L .fi .SH DESCRIPCIÓN \fBsignbit\fP() es una macro genérica que acepta todos los tipos reales en coma flotante. Devuelve un valor distinto de cero si el valor de \fIx\fP tiene activo el bit de signo. .PP Ésto no es lo mismo que \fIx < 0.0\fP, porque la especificación IEEE 754 para coma flotante permite que el cero tenga signo. La comparación \fI\-0.0\~<\~0.0\fP es falsa, mientras que \fIsignbit (\-0.0)\fP devolverá un valor distinto de cero. .PP NaNs and infinities have a sign bit. .SH "VALOR DEVUELTO" The \fBsignbit\fP() macro returns nonzero if the sign of \fIx\fP is negative; otherwise it returns zero. .SH ERRORES No suceden errores. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBsignbit\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .sp 1 .SH ESTÁNDARES C11, POSIX.1\-2008. .SH HISTORIAL POSIX.1\-2001, C99. .PP This function is defined in IEC 559 (and the appendix with recommended functions in IEEE 754/IEEE 854). .SH "VÉASE TAMBIÉN" \fBcopysign\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .