Re: numeric field overflow - Mailing list pgsql-general

From Bruce Momjian
Subject Re: numeric field overflow
Date
Msg-id 200910091629.n99GTkH22336@momjian.us
Whole thread Raw
In response to Re: numeric field overflow  (David W Noon <dwnoon@ntlworld.com>)
List pgsql-general
David W Noon wrote:
> On Tue, 6 Oct 2009 12:20:11 +0600, Nurzhan Kirbassov wrote about
> [GENERAL] numeric field overflow:
>
> [snip]
> >So, does the precision part of the numeric type really means number of
> >digits to the left of the decimal point, or what ?
>
> No.
>
> The precision is the *total* number of decimal digits, both to the left
> and to the right of the decimal point.

Yes, this is confusing, but it is how the standard defines the behavior.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-general by date:

Previous
From: Raymond O'Donnell
Date:
Subject: Re: array question
Next
From: Whit Armstrong
Date:
Subject: Re: array question