Re: Why don't we accept exponential format for integers? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Why don't we accept exponential format for integers?
Date
Msg-id 5599.1292618772@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why don't we accept exponential format for integers?  (Christophe Pettus <xof@thebuild.com>)
List pgsql-hackers
Christophe Pettus <xof@thebuild.com> writes:
> Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
> [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> isinstance(10,int)
> True
> isinstance(1e10,int)
> False

Right.  Possibly a more concrete reason why this doesn't seem like a
great idea:
1e+1        integer?1e+0        integer?1e-0        integer?1e-1        definitely not an integer
        regards, tom lane


pgsql-hackers by date:

Previous
From: Christophe Pettus
Date:
Subject: Re: Why don't we accept exponential format for integers?
Next
From: Jeff Janes
Date:
Subject: Re: Why don't we accept exponential format for integers?