Re: Allow round() function to accept float and double precision - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Allow round() function to accept float and double precision
Date
Msg-id 1699383.1669924929@sss.pgh.pa.us
Whole thread Raw
In response to Re: Allow round() function to accept float and double precision  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Allow round() function to accept float and double precision  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-hackers
David Rowley <dgrowleyml@gmail.com> writes:
> I don't really agree that it will work fine in all cases though. If
> the numeric has more than 1000 digits left of the decimal point then
> the method won't work at all.

But what we're talking about is starting from a float4 or float8
input, so it can't be more than ~308 digits.

            regards, tom lane



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Allow round() function to accept float and double precision
Next
From: Robert Haas
Date:
Subject: Re: Error-safe user functions