Re: rint() replacement

Поиск
Список
Период
Сортировка
От Kurt Roeckx
Тема Re: rint() replacement
Дата
Msg-id 20030510115310.GA27755@ping.be
обсуждение исходный текст
Ответ на Re: rint() replacement  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Brian
Дата:
Сообщение: Re: 7.4 features list
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Plans for index names unique to a table?