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

Поиск
Список
Период
Сортировка
От Nathan Boley
Тема Re: Why don't we accept exponential format for integers?
Дата
Msg-id AANLkTi=Z6o+oim0q0OrbX6m4erhynTh_FH0qVnsKBK7r@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Why don't we accept exponential format for integers?  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
>>>> print int(1e+01)
> 10
>>>>
>

That isn't building an integer: it is creating a float and casting to an int.

try:

int( 1e100 )

Best,
Nathan


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

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