Subject | RE: [firebird-support] Re: problem with round |
---|---|
Author | Steffen Heil |
Post date | 2004-03-09T06:39:29Z |
Hi
integer.
This is wrong.
You are dividing by some integer and therefor your result [of the division]
is also some integer. No convertions so far.
THEN you assign to some float. Therefor your intermediate integer result
gets converted to float.
It is just doing, what you tell it to do.
cu
Steffen
Have a look at some books about types. For example:
http://www.amazon.com/exec/obidos/tg/detail/-/0262162091
> Of course I know. I know that the variable where the result is assigned tois a floating point variable, so it makes no sense to convert the result to
integer.
This is wrong.
You are dividing by some integer and therefor your result [of the division]
is also some integer. No convertions so far.
THEN you assign to some float. Therefor your intermediate integer result
gets converted to float.
It is just doing, what you tell it to do.
cu
Steffen
Have a look at some books about types. For example:
http://www.amazon.com/exec/obidos/tg/detail/-/0262162091