Re: rint() replacement - Mailing list pgsql-hackers

From Kurt Roeckx
Subject Re: rint() replacement
Date
Msg-id 20030510115310.GA27755@ping.be
Whole thread Raw
In response to Re: rint() replacement  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, May 10, 2003 at 12:29:27AM -0400, Tom Lane wrote:
> "Dann Corbit" <DCorbit@connx.com> writes:
> 
> I do have a bit of a problem with the CVS-tip version of this code: it
> falls back to implementing rint() in terms of modf().  I would like to
> know the justification for assuming that modf() is more portable than
> rint().

modf() is part of C89 and POSIX, just as floor().  I have modf()
here, I do not have rint().

rint() was a BSD thing and is now part of C99.


Kurt



pgsql-hackers by date:

Previous
From: Brian
Date:
Subject: Re: 7.4 features list
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Plans for index names unique to a table?