From: | "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #1112: round(float-type does not work) |
Date: | 2004-03-24 09:52:37 |
Message-ID: | 20040324095237.726F6CF510D@www.postgresql.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 1112
Logged by: Ulf Mehlig
Email address: ulf(dot)mehlig(at)zmt-bremen(dot)de
PostgreSQL version: 7.4
Operating system: Debian Linux/i386 "testing"
Description: round(float-type does not work)
Details:
After upgrading to 7.4.2 I just discovered that the round(f,d) function does
not work as expected (bug or feature?):
xxx=> select round(pi(), 2);
ERROR: function round(double precision, integer) does not exist
HINT: No function matches the given name and argument types. You may need
to add explicit type casts.
Typecasting to "NUMERIC" helps, but in my opinion it should not be necessary
to typecast float values for rounding:
xxx=> select round(pi()::numeric, 2);
round
-------
3.14
(1 row)
From | Date | Subject | |
---|---|---|---|
Next Message | pgsql-bugs | 2004-03-24 11:59:34 | Returned due to virus; was:hi |
Previous Message | Tom Lane | 2004-03-23 23:37:48 | Re: BUG #1111: documentation error |