What about using sprintf (assuming it's C) or the equivalent to give you the 
number in a string variable?


> float i = 0.0f;
> i = i + 1.0f;
> i = i + .11f;
>
> Compiling and running this code results in an i equal to
> 0.11000001430511474609375  I know this is close, but I'm trying to do a
> float to char conversion. And I can't seem to figure out how to get an
> exact value from anything here. Is this normal (I seem to recall it is)?
> And how (if I can) do I get around this?
>
> Thanks a lot.

-- 

Brett I. Holcomb
AKA Grunt <><

--
[EMAIL PROTECTED] mailing list

Reply via email to