From mcontr@loquesea.com Tue Jun 13 20:20:11 2000 Received: from sun00962.dn.net ([209.207.190.173]) by hub.org (8.10.1/8.10.1) with ESMTP id e5DKKBT30633 for ; Tue, 13 Jun 2000 16:20:11 -0400 (EDT) Received: from choroni ([200.11.223.62]) by sun00962.dn.net (Netscape Messaging Server 4.15) with ESMTP id FW40FY00.23A for ; Tue, 13 Jun 2000 16:19:10 -0400 Message-ID: <009501bfd574$469166c0$0200000a@zonageek.com> From: "Meibell Contreras" To: Subject: Money Data type Date: Tue, 13 Jun 2000 16:16:33 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0092_01BFD552.BD7FD810" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200006/80 This is a multi-part message in MIME format. ------=_NextPart_000_0092_01BFD552.BD7FD810 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello; Anyone knows if postgres has a bigger data type than money... when you use this; (not with dollar definition); the money data type is not= enough... gracias Meibell ------=_NextPart_000_0092_01BFD552.BD7FD810 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hello;
 
Anyone knows if postgres has a bigger data= type=20 than money...
when you use this; (not with dollar defini= tion);=20 the money data type is not enough...
 
gracias
Meibell
------=_NextPart_000_0092_01BFD552.BD7FD810-- From banghe@baileylink.net Wed Jun 14 00:13:21 2000 Received: from mocha2.baileylink.net (IDENT:qmailr@mocha2.baileylink.net [63.71.213.28]) by hub.org (8.10.1/8.10.1) with SMTP id e5E0DKT11355 for ; Tue, 13 Jun 2000 20:13:21 -0400 (EDT) Received: (qmail 28592 invoked from network); 14 Jun 2000 00:13:09 -0000 Received: from ra216-213.baileylink.net (HELO baileylink.net) (63.71.216.213) by mocha2.baileylink.net with SMTP; 14 Jun 2000 00:13:09 -0000 Message-ID: <3946CF2B.E0F3DC68@baileylink.net> Date: Tue, 13 Jun 2000 19:17:48 -0500 From: banghe X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en,zh,zh-CN,zh-TW MIME-Version: 1.0 To: Meibell Contreras CC: pgsql-admin@postgresql.org Subject: Re: Money Data type References: <009501bfd574$469166c0$0200000a@zonageek.com> Content-Type: multipart/alternative; boundary="------------0709D88BF0DE0E5FC13C23B8" X-Archive-Number: 200006/81 --------------0709D88BF0DE0E5FC13C23B8 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit You may use type real? -- Banghe Meibell Contreras wrote: > hello; Anyone knows if postgres has a bigger data type than > money...when you use this; (not with dollar definition); the money > data type is not enough... graciasMeibell --------------0709D88BF0DE0E5FC13C23B8 Content-Type: text/html; charset=gb2312 Content-Transfer-Encoding: 7bit You may use type real? -- Banghe

Meibell Contreras wrote:

hello; Anyone knows if postgres has a bigger data type than money...when you use this; (not with dollar definition); the money data type is not enough... graciasMeibell
--------------0709D88BF0DE0E5FC13C23B8-- From mcontr@loquesea.com Wed Jun 14 02:18:43 2000 Received: from sun00962.dn.net ([209.207.190.173]) by hub.org (8.10.1/8.10.1) with ESMTP id e5E2IhT58384 for ; Tue, 13 Jun 2000 22:18:43 -0400 (EDT) Received: from choroni ([200.11.223.62]) by sun00962.dn.net (Netscape Messaging Server 4.15) with ESMTP id FW4H1K00.EAY; Tue, 13 Jun 2000 22:17:44 -0400 Message-ID: <001001bfd5a6$5ca926a0$0200000a@zonageek.com> From: "Meibell Contreras" To: "banghe" Cc: References: <009501bfd574$469166c0$0200000a@zonageek.com> <3946CF2B.E0F3DC68@baileylink.net> Subject: Re: Money Data type Date: Tue, 13 Jun 2000 22:15:05 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000D_01BFD584.D3D7D540" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200006/82 This is a multi-part message in MIME format. ------=_NextPart_000_000D_01BFD584.D3D7D540 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable excuse me... I have a question... I found another data types like "numeric" and "decimal". but the "real" type is the only that could accept 14 and 2 decimals... the = othes (numeric or decimal does not)... I would like to know how is the prec= ision using the "real" data type.... thanks Meibell ----- Original Message -----=20 From: banghe=20 To: Meibell Contreras=20 Cc: pgsql-admin@postgresql.org=20 Sent: Tuesday, June 13, 2000 8:17 PM Subject: Re: [ADMIN] Money Data type You may use type real? -- Banghe=20 Meibell Contreras wrote:=20 hello; Anyone knows if postgres has a bigger data type than money...whe= n you use this; (not with dollar definition); the money data type is not en= ough... graciasMeibell ------=_NextPart_000_000D_01BFD584.D3D7D540 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
excuse me... I have a question...
 
I found another data types like "numeric" = and=20 "decimal".
but the "real" type is the only that could= accept=20 14 and 2 decimals... the othes (numeric or decimal does not)... I would lik= e to=20 know how is the precision using the "real" data type....
 
thanks
Meibell
 
----- Original Message -----
Fro= m:=20 ba= nghe=20
Cc: pgsql-admin@postgresql.org
Sent: Tuesday, June 13, 2000 8:17= =20 PM
Subject: Re: [ADMIN] Money Data=20 type

You may use type real? -- Banghe=20

Meibell Contreras wrote:=20

hello; Anyone knows if postgres has a bigger data= type=20 than money...when you = use this;=20 (not with dollar definition); the money data type is not=20 enough... graciasMeibell
------=_NextPart_000_000D_01BFD584.D3D7D540-- From dhudes@hudes.org Wed Jun 14 02:54:54 2000 Received: from harmony.hudes.org (IDENT:root@advsol4.dsl.concentric.net [209.220.92.60]) by hub.org (8.10.1/8.10.1) with ESMTP id e5E2ssT36552 for ; Tue, 13 Jun 2000 22:54:54 -0400 (EDT) Received: from soloist (w061.z209220092.nyc-ny.dsl.cnc.net [209.220.92.61]) by harmony.hudes.org (8.9.3/8.9.3) with SMTP id WAA04070; Tue, 13 Jun 2000 22:54:51 -0400 Message-ID: <00a101bfd5ab$e9111d00$3d5cdcd1@hudes.org> From: "Dana Hudes" To: "Meibell Contreras" , "banghe" Cc: References: <009501bfd574$469166c0$0200000a@zonageek.com> <3946CF2B.E0F3DC68@baileylink.net> <001001bfd5a6$5ca926a0$0200000a@zonageek.com> Subject: Re: Money Data type Date: Tue, 13 Jun 2000 22:54:51 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id e5E2ssT36553 X-Archive-Number: 200006/83 You can't use a floating point representation for money! If the "real" type is implemented internally as a C double or float, its not suitable for money. This is due to the way floating point numbers are stored in hardware. Money should only be done with integral types. Use fixed point arithmetic, or track the decimal point yourself. ----- Original Message ----- From: Meibell Contreras To: banghe Cc: pgsql-admin@postgresql.org Sent: Tuesday, June 13, 2000 10:15 PM Subject: Re: [ADMIN] Money Data type excuse me... I have a question... I found another data types like "numeric" and "decimal". but the "real" type is the only that could accept 14 and 2 decimals... the othes (numeric or decimal does not)... I would like to know how is the precision using the "real" data type.... thanks Meibell ----- Original Message ----- From: banghe To: Meibell Contreras Cc: pgsql-admin@postgresql.org Sent: Tuesday, June 13, 2000 8:17 PM Subject: Re: [ADMIN] Money Data type You may use type real? -- Banghe Meibell Contreras wrote: hello; Anyone knows if postgres has a bigger data type than money...when you use this; (not with dollar definition); the money data type is not enough... graciasMeibell From e99re41@DoCS.UU.SE Wed Jun 14 11:19:25 2000 Received: from meryl.it.uu.se (root@meryl.it.uu.se [130.238.12.42]) by hub.org (8.10.1/8.10.1) with ESMTP id e5EBJPT87599 for ; Wed, 14 Jun 2000 07:19:25 -0400 (EDT) Received: from Stork.DoCS.UU.SE (e99re41@Stork.DoCS.UU.SE [130.238.9.153]) by meryl.it.uu.se (8.8.5/8.8.5) with ESMTP id NAA01623; Wed, 14 Jun 2000 13:19:21 +0200 (MET DST) Received: from localhost (e99re41@localhost) by Stork.DoCS.UU.SE (8.6.12/8.6.12) with ESMTP id NAA00667; Wed, 14 Jun 2000 13:19:20 +0200 X-Authentication-Warning: Stork.DoCS.UU.SE: e99re41 owned process doing -bs Date: Wed, 14 Jun 2000 13:19:20 +0200 (MET DST) From: Peter Eisentraut Reply-To: Peter Eisentraut To: Meibell Contreras cc: pgsql-admin@postgresql.org Subject: Re: Money Data type In-Reply-To: <009501bfd574$469166c0$0200000a@zonageek.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by hub.org id e5EBJQT87602 X-Archive-Number: 200006/95 On Tue, 13 Jun 2000, Meibell Contreras wrote: > Anyone knows if postgres has a bigger data type than money... when you > use this; (not with dollar definition); the money data type is not > enough... `numeric'. And use to_char() for formatting if you like. -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden