Re: POC: rational number type (fractions)

Поиск
Список
Период
Сортировка
От Joe Nelson
Тема Re: POC: rational number type (fractions)
Дата
Msg-id 20200222022423.GH42864@begriffs.com
обсуждение исходный текст
Ответ на Re: POC: rational number type (fractions)  (Joe Nelson <joe@begriffs.com>)
Список pgsql-hackers
Joe Nelson wrote:
> where the denominator is made positive whenever possible (not possible
> when it's -INT_MAX).

(I meant INT_MIN rather than -INT_MAX.)

Another more-than-one-way-to-do-it task is converting a float to a
fraction.  I translated John Kennedy's method [0] to C, but Github user
adegert sent an alternative [1] that matches the way the CPython
implementation works.

0: https://begriffs.com/pdf/dec2frac.pdf 
1: https://github.com/begriffs/pg_rational/pull/13



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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: Transactions involving multiple postgres foreign servers, take 2
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Make java client lib accept same connection strings as psql