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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why don't we accept exponential format for integers?
Дата
Msg-id 5319.1292617851@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why don't we accept exponential format for integers?  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
"Joshua D. Drake" <jd@commandprompt.com> writes:
> On Fri, 2010-12-17 at 14:35 -0500, Tom Lane wrote:
>> I have never heard of any programming system anywhere that accepts
>> such
>> a syntax for integers (assuming it distinguishes integers from other
>> numbers at all).

> Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) 
> [GCC 4.4.5] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> print int(1e+01)
> 10

That's a conversion, not an integer natively.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Why don't we accept exponential format for integers?
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Why don't we accept exponential format for integers?