Article View: chile.comp.programacion
Article #3583Re: funcion round en C
From: joe
Date: Thu, 09 Dec 2004 17:56
Date: Thu, 09 Dec 2004 17:56
29 lines
1378 bytes
1378 bytes
joe <joe@anonymous.nu> wrote:
> Hola
>
> Tengo el siguiente problema con la funcion round.
> El programa.
>
> /***** round.c *****/
> #include <stdio.h>
> #include <math.h>
>
> int main ()
> {
> double x = 1.234, y;
> y = round(x);
> printf("El valor redondeado de %f es %f.\n", x,y);
> return 0;
> }
> /***** end ****/
[...]
Umm, cambie round(3) por rint(3) y funciona... Que onda con la funcion
round(3), esta siendo desaprobada (para no decir "deprecada", palabra
que no existe, AFAIK)?
Saludos.
--
joe
Technical Details
Message-ID:
<cpa3k5$p9o$2@news1.nivel5.cl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mailReferences:
<cpa338$p9o$1@news1.nivel5.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,45a58cbd8a22477a
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mail
From: joe <joe@anonymous.nu>
Newsgroups: chile.comp.programacion
Subject: Re: funcion round en C
Date: Thu, 9 Dec 2004 17:56:23 +0000 (UTC)
Organization: Varios
Lines: 29
Message-ID: <cpa3k5$p9o$2@news1.nivel5.cl>
References: <cpa338$p9o$1@news1.nivel5.cl>
NNTP-Posting-Host: cm-vina3-151-114.cm.vtr.net
X-Trace: news1.nivel5.cl 1102614983 25912 200.104.151.114 (9 Dec 2004 17:56:23 GMT)
X-Complaints-To: news@news1.nivel5.cl
NNTP-Posting-Date: Thu, 9 Dec 2004 17:56:23 +0000 (UTC)
User-Agent: tin/1.7.6-20040906 ("Baleshare") (UNIX) (Linux/2.6.9-1-k7 (i686))