Re: Is there a floating-point division function/operator?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Is there a floating-point division function/operator?
Дата
Msg-id 20030122224044.P7070-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Is there a floating-point division function/operator?  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Список pgsql-general
On Thu, 23 Jan 2003, Jean-Christian Imbeault wrote:

> In Postgresql the "/" operator does integer division. Is there an
> operator or function that will do floating-point division?

/ does division based on the types of its operands

1/2 -> 0
1::float / 2 -> 0.5


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Perfornamce Q
Следующее
От: pginfo
Дата:
Сообщение: Re: vacuum problem