Re: Why don't we accept exponential format for integers?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why don't we accept exponential format for integers?
Дата
Msg-id 5599.1292618772@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why don't we accept exponential format for integers?  (Christophe Pettus <xof@thebuild.com>)
Список 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 по дате отправления:

Предыдущее
От: Christophe Pettus
Дата:
Сообщение: Re: Why don't we accept exponential format for integers?
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: Why don't we accept exponential format for integers?