Re: Fixed length data types issue

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Fixed length data types issue
Дата
Msg-id 20060922150737.GA26249@wolff.to
обсуждение исходный текст
Ответ на Re: Fixed length data types issue  (Gregory Stark <gsstark@mit.edu>)
Список pgsql-hackers
On Mon, Sep 11, 2006 at 19:05:12 -0400, Gregory Stark <gsstark@mit.edu> wrote:
> 
> I'm not sure how gmp and the others represent their data but my first guess is
> that there's no particular reason the base of the mantissa and exponent have
> to be the same as the base the exponent is interpreted as. That is, you can
> store a base 10 exponent but store it and the mantissa in two's complement
> integers.

You can also store numbers as a relatively prime numerator and denominator,
which will let store rational numbers exactly. Doing this isn't going to help
with speed of operations though.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Include file in regress.c
Следующее
От: Tom Lane
Дата:
Сообщение: Re: advisory locks and permissions