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

From Sayyid Ali Sajjad Rizavi
Subject Allow round() function to accept float and double precision
Date
Msg-id CAHxW8BAZZAw85E+hzXMN5wY8jba6LXsJ3ddjDaYSd27oMRiv4w@mail.gmail.com
Whole thread Raw
Responses Re: Allow round() function to accept float and double precision
List pgsql-hackers
Whenever rounding a number to a fixed number of decimal points in a calculation, we need to cast the number into a numeric before using round((col1/100.0)::numeric, 2).

It would be convenient for everyone if round() also accepts float and double precision.

Is this something I could work with? And is that feasible?

pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: Tests for psql \g and \o
Next
From: Sayyid Ali Sajjad Rizavi
Date:
Subject: Re: Enable pg_stat_statements extension for limited statements only