Re: [SQL] Re: SQL error: function round(double precision, integer) does not exist - Mailing list pgsql-sql

From Tom Lane
Subject Re: [SQL] Re: SQL error: function round(double precision, integer) does not exist
Date
Msg-id 16203.1495734888@sss.pgh.pa.us
Whole thread Raw
In response to [SQL] Re: SQL error: function round(double precision, integer) does notexist  (Vladimir Nicolici <vladnc@gmail.com>)
Responses Re: [SQL] Re: SQL error: function round(double precision, integer)does not exist  (Vladimir Nicolici <vladnc@gmail.com>)
List pgsql-sql
Vladimir Nicolici <vladnc@gmail.com> writes:
> Any plans to fix this annoyance?

Not particularly.  Making round() work with floats seems questionable,
since the result frequently couldn't be represented exactly, making the
whole exercise a bit pointless.  Why don't you cast the float to numeric?
        regards, tom lane



pgsql-sql by date:

Previous
From: Vladimir Nicolici
Date:
Subject: [SQL] Re: SQL error: function round(double precision, integer) does notexist
Next
From: Vladimir Nicolici
Date:
Subject: Re: [SQL] Re: SQL error: function round(double precision, integer)does not exist