Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [GENERAL] Format Float numbers

From: A. Kretschmer <andreas.kretschmer(at)schollglas.com>
Date: Thu Jan 10 2008 - 08:21:44 EST


am Thu, dem 10.01.2008, um 10:03:05 -0300 mailte Fernando Xavier folgendes:
> Hi,
>
> I want format a column in select result:
>
> 1.1 => 1.10
>
> Any idea?

Yes. You can use to_char() or a CAST like

test=*# select 1.1::numeric(10,2);
 numeric


    1.10
(1 row)

Andreas

-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   
http://wwwkeys.de.pgp.net

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly
Received on Thu Jan 10 08:26:53 2008

This archive was generated by hypermail 2.1.8 : Mon Jun 16 2008 - 23:50:25 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library