SELECT POW( case when 0.0<1.0 then 1 else 2 end ,2), POW( case when 0<2 then 1 else 2 end ,2), POW( case when 6<1 then 1 else 2 end ,2.0);
http://homepage2.nifty.com/sak/w_sak3/doc/sysbrd/psql_k15.htm