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

From Nathan Boley
Subject Re: Why don't we accept exponential format for integers?
Date
Msg-id AANLkTi=Z6o+oim0q0OrbX6m4erhynTh_FH0qVnsKBK7r@mail.gmail.com
Whole thread Raw
In response to Re: Why don't we accept exponential format for integers?  ("Joshua D. Drake" <jd@commandprompt.com>)
List 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 by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Why don't we accept exponential format for integers?
Next
From: Robert Haas
Date:
Subject: Re: Why don't we accept exponential format for integers?