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

From Tom Lane
Subject Re: Why don't we accept exponential format for integers?
Date
Msg-id 5144.1292617454@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why don't we accept exponential format for integers?  (Bill Moran <wmoran@potentialtech.com>)
Responses Re: Why don't we accept exponential format for integers?
List pgsql-hackers
Bill Moran <wmoran@potentialtech.com> writes:
> In response to Tom Lane <tgl@sss.pgh.pa.us>:
>> 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).  I'm not excited about being the first.

> But
> SELECT 1.000::Integer;
> works.  And so does

Sure.  That's a datatype conversion, though; it's not a case of taking
the value as an integer natively.

> One of the exciting (but possibly wrong) arguments in favor of this is the
> fact that some programming languages will output integers in exponential
> notation when the numbers are very large (PHP is the only example that
> comes to mind, but it's a pretty common language)

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
        regards, tom lane


pgsql-hackers by date:

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