Re: precision and scale functions for numeric

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: precision and scale functions for numeric
Дата
Msg-id 4F9EA46902000025000475D9@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: precision and scale functions for numeric  ("David Johnston" <polobo@yahoo.com>)
Список pgsql-hackers
"David Johnston" <polobo@yahoo.com> wrote:
>> I think you could test for integer-ness by testing whether val % 0 =
0.
> Modulus is a division function anything "% 0" results in a
division-by-zero
It seems pretty clear that he meant "% 1".
test=# select '1.01'::numeric % 1;?column? 
----------    0.01
(1 row)
-Kevin


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: precision and scale functions for numeric
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Future In-Core Replication