rounding down a number

Поиск
Список
Период
Сортировка
От Michael
Тема rounding down a number
Дата
Msg-id BAY124-DAV157F327A8A70BEDF9BD775D8630@phx.gbl
обсуждение исходный текст
Ответы Re: rounding down a number  ("Duncan Garland" <duncan.garland@ntlworld.com>)
Re: rounding down a number  ("Duncan Garland" <duncan.garland@ntlworld.com>)
Список pgsql-novice

Hi,

I’m trying to round down any number with a half, but keep the round function for all other fractions.

For example

 

 

100.1 becomes 100

100.4 becomes 100

100.5 becomes 100 (this one would ordinarily round to 101)

100.6 becomes 101

100.9 becomes 101

 

Thanks, Mick

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

Предыдущее
От: "David Monarchi"
Дата:
Сообщение: Re: postgres 8.2 "end-of-copy marker corrupt"
Следующее
От: Phillip Smith
Дата:
Сообщение: Re: rounding down a number