Search Postgresql Archives

Re: round(real,integer)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Ramsey <pramsey@xxxxxxxxxxxxxxxxx> writes:
> What surprises do you think would come from a
> round(real, integer) returns real
> function? 

People might expect that rounding to, say, 6 digits produces an exact
decimal answer.  Even if you're not exceeding 6 digits overall, it's
unlikely that the answer is *exact*, if it's represented as a float.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux