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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

  From Date Subject
Next Message Steve Crawford 2012-03-07 17:19:08 Re: Numeric Data Type Rounding Up
Previous Message Tom Lane 2012-03-07 17:14:22 Re: Numeric Data Type Rounding Up