Re: [GENERAL] float to int

2007-11-17 Thread Lew
Edoardo Panfili wrote: Charles.Hou ha scritto: how can i get the int value using the sql language? like this, "select cost from my_money_table " , the data type of cost is float. take a look at http://www.postgresql.org/docs/8.2/static/sql-expressions.html CAST ( expression AS type ) expressi

Re: [GENERAL] float to int

2007-11-12 Thread Edoardo Panfili
Charles.Hou ha scritto: > how can i get the int value using the sql language? like this, > > "select cost from my_money_table " , the data type of cost is float. > take a look at http://www.postgresql.org/docs/8.2/static/sql-expressions.html CAST ( expression AS type ) expression::type Edoardo

[GENERAL] float to int

2007-11-12 Thread Charles.Hou
how can i get the int value using the sql language? like this, "select cost from my_money_table " , the data type of cost is float. ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/f

[GENERAL] Float Infinity

2006-12-19 Thread Kaloyan Iliev
Hi All, I just want to ask shouldn't substraction from infinity returns infinity in float just like in timestamp? This is for float: a=# SELECT version(); version ---

[GENERAL] Float

1998-11-10 Thread Javier E Polo
I'm want to create a table with data types float or doubles. How can I declare them ? Create table rrr ( tip1 (float)???, ); Thanks