Re: Native type for storing fractions (e.g 1/3)?

Поиск
Список
Период
Сортировка
От Stephane Bortzmeyer
Тема Re: Native type for storing fractions (e.g 1/3)?
Дата
Msg-id 20070315130741.GA5993@nic.fr
обсуждение исходный текст
Ответ на Re: Native type for storing fractions (e.g 1/3)?  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Native type for storing fractions (e.g 1/3)?  ("John D. Burger" <john@mitre.org>)
Список pgsql-general
On Thu, Mar 15, 2007 at 07:41:18AM +0100,
 Peter Eisentraut <peter_e@gmx.net> wrote
 a message of 22 lines which said:

> His goal may be to store and compute rational numbers exactly.  The
> answer is that there is no data type in PostgreSQL that supports
> this.

But he can write one in PostgreSQL quite easily. Rational numbers are
always the first exercice in CS courses about Abstract Data Types :-)

http://www.postgresql.org/docs/8.0/interactive/xtypes.html

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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: Native type for storing fractions (e.g 1/3)?
Следующее
От: "Alexi Gen"
Дата:
Сообщение: Role & User - Inheritance?