Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Subject: Re: glibc & ceil()
Date: Fri, 27 Oct 2000 08:13:02 -0500	[thread overview]
Message-ID: <39F97F5E.7AEDED79@voicenet.com> (raw)
In-Reply-To: 39F978F5.BE23BE6D@tn.utwente.nl

Some one pointed out that i need to include math.h

ie
#inclued <math.h>

to get the right casting.
But even with the correct casting, a ceil( -0.5 ) gives me a 0.0

/gat

"Andrei A. Dergatchev" wrote:

> FWIW on Sparc Solaris 7 Sun C 5.0 with -xarch=v9a gives r = 0
>
> > Uncle George wrote:
> >
> > > is the correct result of ceil( -0.5) -0.0  or 0.0 ?
> > >
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list




  reply	other threads:[~2000-10-27 13:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <39F8090C.4268451C@voicenet.com>
2000-10-27 12:07 ` glibc & ceil() Uncle George
2000-10-27 12:45   ` Andrei A. Dergatchev
2000-10-27 13:13     ` Uncle George [this message]
2000-10-27 13:25       ` Andrei A. Dergatchev
2000-10-27 17:40   ` Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox