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