From: | Bruno Boettcher <bboett(at)erm1(dot)u-strasbg(dot)fr> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | numeric conversions? |
Date: | 2000-11-20 15:51:33 |
Message-ID: | 20001120165133.D25191@erm1.u-strasbg.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hello,
me again :(
i just ran into another problem....
didn't found it neither in the doc nor in the FAQ.....
the currencies conversion factors i use are stored as float4 in a table,
the values to apply on are stores as int4 ....
is the type casting done automaticly? how? can i have an influence of
the cast order? is there an easy way to doing the rounding?
the operation i want to do is something along this line:
int4 = ((int4) float4 * (float4)int4 +.5);
--
ciao bboett
==============================================================
bboett(at)earthling(dot)net
http://inforezo.u-strasbg.fr/~bboett http://erm1.u-strasbg.fr/~bboett
===============================================================
the total amount of intelligence on earth is constant.
human population is growing....
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-11-20 15:53:48 | Re: Like seems to fail ! |
Previous Message | Clayton Cottingham | 2000-11-20 15:18:13 | Re: MySQL -> Postgres dump converter |