casting float8 type

From: Bob Dusek <bobd(at)palaver(dot)net>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: casting float8 type
Date: 1998-11-05 03:45:25
Message-ID: 36411F55.B878809E@palaver.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello everyone,

I apologize if this seems elementary to you, but I just spent quite a
bit of time searching the archives and the documentation for a way to do
this. I may have been looking wrong, but I tried to look in all of the
"obvious" places. Anyway...

How would I go about converting a value of type 'float8' to a value of
type 'int'? It's probably not possible to do a straight conversion of a
float to an int, but is there a truncate, or a rounding function that I
could use? I couldn't find such a thing in my search.

Thanks in advance,

Bob

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ulf Mehlig 1998-11-05 08:05:59 Re: [GENERAL] casting float8 type
Previous Message The Hermit Hacker 1998-11-05 03:08:35 November 4th, 1998: PostgreSQL v6.4 Released