Monetary, Float Types

From: Rob Cleveland <rob(dot)cleveland(at)wardsauto(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Monetary, Float Types
Date: 1998-11-20 20:03:54
Message-ID: 00d101be14c0$ed920a40$82fdfea9@robertcl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am trying to add prices together using either the monetary type or float4 type. Monetary doesn't seem to add, and float4 renders results out to 7 decimal places. Also, float4 doesn't display prices with .00 cents. Which data type should I use to solve this problem?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gilley, Charles H. 1998-11-20 23:33:24 FW: [GENERAL] Loading a database, ...
Previous Message Oleg Broytmann 1998-11-20 16:20:10 Date/time problem