Re: Convert float to double - weird failure



tugboat90 wrote:

<snips>

Thank you for the responses, but I understand how the numbers are
represented inside of a computer. I think I phrased my question
wrong.

When I converted from a float to a double, why did it add random
junk at the end of the number instead of making it zeros? If the
random junk is there, how do I get rid of it?

Reread my earlier reply, which explains it. And don't post without
quoting enough of the previous message to explain your answer.
Omitting that makes your message unintelligible.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>


--
Posted via a free Usenet account from http://www.teranews.com

.