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

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: jd(at)commandprompt(dot)com
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bill Moran <wmoran(at)potentialtech(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Why don't we accept exponential format for integers?
Date: 2010-12-17 20:37:37
Message-ID: AANLkTiktyqCbS7pqDwc5CAXCZmEzzZdLqLvSt5QU9cR7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 17, 2010 at 3:31 PM, Joshua D. Drake <jd(at)commandprompt(dot)com> wrote:
>
>> Just another example of the fact that PHP was designed by incompetent
>> amateurs :-(
>>
>> http://www.junauza.com/2010/12/top-50-programming-quotes-of-all-time.html
>
> Unless I am misunderstanding the argument... perl and python both
> support what is suggested here.
>
> jd(at)jd-desktop:~$ perl -e 'print int('1e+01')';
> 10

You're misunderstanding the argument.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christophe Pettus 2010-12-17 20:38:50 Re: Why don't we accept exponential format for integers?
Previous Message Nathan Boley 2010-12-17 20:31:21 Re: Why don't we accept exponential format for integers?