rounding down a number - Mailing list pgsql-novice

From Michael
Subject rounding down a number
Date
Msg-id BAY124-DAV157F327A8A70BEDF9BD775D8630@phx.gbl
Whole thread Raw
Responses Re: rounding down a number  ("Duncan Garland" <duncan.garland@ntlworld.com>)
Re: rounding down a number  ("Duncan Garland" <duncan.garland@ntlworld.com>)
List 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 by date:

Previous
From: "David Monarchi"
Date:
Subject: Re: postgres 8.2 "end-of-copy marker corrupt"
Next
From: Phillip Smith
Date:
Subject: Re: rounding down a number