Ask a Question related to PostgreSQL / PGSQL, Design and Development.
-
phil campaigne #1
Numeric type
Hi All,
I have a double type in java that I am trying to store in postgresql as
type numeric and it doesn't seem to like it. The error message is,
function double(numeric) does not exist
unable to identify a function that satisfies the given argument type
you may need to add explicit type casts.
If I just want to store the number as 'xx.xx', is 'numeric' the right
postgresql type?
thanks,
Phil
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
phil campaigne Guest
-
#39056 [NEW]: Interbase NUMERIC data type error
From: ddi at elecom dot ru Operating system: All PHP version: 5.1.6 PHP Bug Type: InterBase related Bug description: ... -
Sending Numeric Type Variable From DataGrid toColdFusion
Hi All: I am trying to send a selected item from a numeric type back to the database. I use datagrid.selectedItem.numericvarname to select the... -
ldap DirectoryServices.DirectoryEntry System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).
hi, i'm trying to make a query to a ldap server (version v2 or v3 doen't matter) with c#. the query works just fine but the problem is that i... -
Type Mismatch When Set VB Com Property to Request Form Numeric Var
Hi, We are moving existing, production ASP 2 and VB6 code from NT4/IIS4 to Windows 2003/IIS6. We get a Type Mismatch error when we try to assign a... -
Problem with character palette and Tracking field: can't type zero after type is modified
System: Illustrator CS, Panther 10.3.3 Try this: Create a few characters of type. Select some letters and change their tracking (Option + Command... -
Paul Thomas #2
Re: Numeric type
On 27/01/2005 01:06 phil campaigne wrote:use getBigDecimal()/setBigDecimal()> Hi All,
> I have a double type in java that I am trying to store in postgresql as
> type numeric and it doesn't seem to like it. The error message is,
> function double(numeric) does not exist
> unable to identify a function that satisfies the given argument type
> you may need to add explicit type casts.
It depends a lot on your precision requirements and whether or not small>
> If I just want to store the number as 'xx.xx', is 'numeric' the right
> postgresql type?
rounding errors matter in your application. For an accounting application,
I would recommend using numeric and using BigDecimal in your Java code. If
small rounding errors don't matter the you'll find using double precision
(int8) in the databse and double in your Java code somewhat easier.
HTH
--
Paul Thomas
+------------------------------+-------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for Business |
| Computer Consultants | [url]http://www.thomas-micro-systems-ltd.co.uk[/url] |
+------------------------------+-------------------------------------------+
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
[url]http://www.postgresql.org/docs/faq[/url]
Paul Thomas Guest



Reply With Quote

