1.2e+02 -> 120

From: Przemyslaw Bak <przemol(at)st3(dot)makro(dot)com(dot)pl>
To: pgsql-general(at)postgresql(dot)org
Subject: 1.2e+02 -> 120
Date: 1998-09-10 17:47:56
Message-ID: Pine.SV4.3.96.980910194316.13833A-100000@STORE3
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have query:
select sum(total_sales)
from sales;

After I run the query it prints:

sum
-----------
1.2e+03
(1 row)

How can I force postgres to display it as

sum
-----------
1200
(1 row)

przemol

Browse pgsql-general by date

  From Date Subject
Next Message Chris Johnson 1998-09-10 18:19:48 Re: [GENERAL] PQgetvalue weirdness
Previous Message Simon Drabble 1998-09-10 16:54:34 PQgetvalue weirdness