From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Aravind Kumar <aravindc26(at)gmail(dot)com> |
Cc: | "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: numeric data type upper limit. |
Date: | 2016-08-14 12:35:07 |
Message-ID: | CAKFQuwY-9bDYHggBA63Vy_jKZKMusq_HXf96+iHpt546fM3pMg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-novice |
On Sunday, August 14, 2016, Aravind Kumar <aravindc26(at)gmail(dot)com> wrote:
> Hi,
>
> when I do
>
> select 1.0e+1001::numeric;
>
> I get
>
> invalid input syntax for type numeric: "1.0e+1001"
>
> But
>
> select 1.0e+1000::numeric;
>
> seems to be valid.
>
> Postgresql documentation tells me that numeric data type has an upper
> limit of 131072 digits before decimal point.
>
> Am I missing something ?
>
>
Guessing here but I think numeric input requires single quotes around the
value.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Aravind Kumar | 2016-08-14 14:27:23 | Re: numeric data type upper limit. |
Previous Message | konstantin knizhnik | 2016-08-14 06:54:40 | Re: WIP: Barriers |
From | Date | Subject | |
---|---|---|---|
Next Message | Aravind Kumar | 2016-08-14 14:27:23 | Re: numeric data type upper limit. |
Previous Message | Aravind Kumar | 2016-08-14 05:54:45 | numeric data type upper limit. |