Re: How to truncate? integers

Поиск
Список
Период
Сортировка
От Steve Crawford
Тема Re: How to truncate? integers
Дата
Msg-id 4EC42626.2030409@pinpointresearch.com
обсуждение исходный текст
Ответ на How to truncate? integers  (Johann Schatzer <schatzer.johann@gmail.com>)
Список pgsql-novice
On 11/16/2011 12:26 PM, Johann Schatzer wrote:
> How can I ~truncate~ integers?
>
>
> this column
>
> 4770
> ...
>
> should give
>
> 4700
> ...

To the next lower 100? Try this:

select floor(4770*.01)*100;
  ?column?
----------
      4700

Cheers,
Steve

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

Предыдущее
От: "Jean-Yves F. Barbier"
Дата:
Сообщение: Re: How to truncate? integers
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: How to truncate? integers