Skip site navigation (1) Skip section navigation (2)

Re: Numeric Data Type Rounding Up

From: Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Numeric Data Type Rounding Up
Date: 2012-03-07 17:19:00
Message-ID: CAAQLLO7as3z=hxcdfCi59WdnouG=PvcbniPmUfMrDpbMNKDajQ@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
On Wed, Mar 7, 2012 at 12:14 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Well, you told it to: (5,0) says five digits before the decimal point
> and none after.  Perhaps numeric(5,2) is what you were after.

I can't believe I missed that. I feel really dumb not realizing that.

Thank you.

In response to

pgsql-novice by date

Next:From: Steve CrawfordDate: 2012-03-07 17:19:08
Subject: Re: Numeric Data Type Rounding Up
Previous:From: Tom LaneDate: 2012-03-07 17:14:22
Subject: Re: Numeric Data Type Rounding Up

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group