G
Geky
Why when I multiply a float , for example X10, and than convert it as
an integer the new value is changed?
Example:
float fl = 1.8
int x;
x = int(fl * 10);
x = 17 <<<<<<<< I think this is not correct
this happen a lot of time in my code with other float numbers.
is this a bug of VisualC6 or I need a solution?
an integer the new value is changed?
Example:
float fl = 1.8
int x;
x = int(fl * 10);
x = 17 <<<<<<<< I think this is not correct
this happen a lot of time in my code with other float numbers.
is this a bug of VisualC6 or I need a solution?