Greatest Common Divisor

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Greatest Common Divisor
Дата
Msg-id adbd3e0b-e3f1-5bbc-21db-03caf1cef0f7@2ndquadrant.com
обсуждение исходный текст
Ответы Re: Greatest Common Divisor  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
I recently came across the need for a gcd function (actually I needed
lcm) and was surprised that we didn't have one.


So here one is, using the basic Euclidean algorithm.  I made one for
smallint, integer, and bigint.

-- 

Vik Fearing                                          +33 6 46 75 15 36
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


Вложения

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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Allow WHEN in INSTEAD OF triggers
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: ALTER TABLE support for dropping generation expression