Re: How to truncate? integers - Mailing list pgsql-novice

From Jean-Yves F. Barbier
Subject Re: How to truncate? integers
Date
Msg-id 20111116223552.5b2213c2@anubis.defcon1
Whole thread Raw
In response to How to truncate? integers  (Johann Schatzer <schatzer.johann@gmail.com>)
List pgsql-novice
On Wed, 16 Nov 2011 21:26:19 +0100
Johann Schatzer <schatzer.johann@gmail.com> wrote:

SELECT trunc(4770, -2);
 trunc
-------
  4700
(1 ligne)

> How can I ~truncate~ integers?
>
>
> this column
>
> 4770
> should give
>
> 4700

--
Q:    How do you tell if an Elephant has been making love in your backyard?
A:    If all your trashcan liners are missing ...

pgsql-novice by date:

Previous
From: Leif Biberg Kristensen
Date:
Subject: Re: How to truncate? integers
Next
From: Steve Crawford
Date:
Subject: Re: How to truncate? integers