Re: Re: SQL error: function round(double precision, integer) does not exist

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vladimir Nicolici <vladnc(at)gmail(dot)com>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Re: SQL error: function round(double precision, integer) does not exist
Date: 2017-05-25 17:54:48
Message-ID: 16203.1495734888@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Vladimir Nicolici <vladnc(at)gmail(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Vladimir Nicolici 2017-05-25 17:55:20 Re: Re: SQL error: function round(double precision, integer) does not exist
Previous Message Vladimir Nicolici 2017-05-25 17:26:48 Re: SQL error: function round(double precision, integer) does not exist