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

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: Native type for storing fractions (e.g 1/3)?
Дата
Msg-id 45F8B44A.70400@cox.net
обсуждение исходный текст
Ответ на Native type for storing fractions (e.g 1/3)?  (Ken Johanson <pg-user@kensystem.com>)
Ответы Re: Native type for storing fractions (e.g 1/3)?  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/14/07 18:55, Ken Johanson wrote:
> In SQL servers in general, or in PG, is there a native field type to
> store fractions? Or must one resort to char or separate
> numerator/denominator columns?

1/3 repeats ad infinitum, and '1/3' would have to be converted to
0.3333333333 before used in a computation, so:

What's your ultimate purpose or goal?


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF+LRKS9HxQb37XmcRAjTCAKCy4jnxWdATXOuDe7y5y/Es9BfYuwCg2GGM
qnkeJyu3NAun5JYxSfhJLyE=
=4gq9
-----END PGP SIGNATURE-----

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

Предыдущее
От: "Kynn Jones"
Дата:
Сообщение: Automating access grants
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Lifecycle of PostgreSQL releases