Re: proposal: rounding up time value less than its unit.

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: proposal: rounding up time value less than its unit.
Дата
Msg-id CAM-w4HOEM6=M8RtMM5LDaoLhwbF8Y9b1n1NioU-zRN5tbd9T1Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: proposal: rounding up time value less than its unit.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: proposal: rounding up time value less than its unit.
Re: proposal: rounding up time value less than its unit.
Список pgsql-hackers
On Sat, Aug 23, 2014 at 9:38 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Ah.  Okay, but then what's wrong with the original proposal of "use ceil()
> instead of floor()"?  Basically I think the idea of treating fractions
> less than one differently from fractions greater than one is bogus; nobody
> will ever find that intuitive.

Or make it an error to specify a value that rounds to 0 but isn't 0.



-- 
greg



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: change alter user to be a true alias for alter role
Следующее
От: David G Johnston
Дата:
Сообщение: Re: proposal: rounding up time value less than its unit.