James,<br><br>Sorry for not clear problem statement,<br>Yes, the unexpected result is that the float number isn&#39;t the same, after adding to FloatArray.<br><br>Thanks,<br>Nikolay<br><br><div class="gmail_quote">On Sun, Dec 21, 2008 at 4:18 AM, James Foster <span dir="ltr">&lt;<a href="mailto:Smalltalk@jgfoster.net" target="_blank">Smalltalk@jgfoster.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On Dec 20, 2008, at 5:54 PM, Nikolay Suslov wrote:<br>
<br>
</div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
It is a bug.. or?<br>
</blockquote>
<br></div>
A misunderstanding.<div><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
FloatArray newFrom: {0.938611557944869}.<br>
Expecting result is the entered float number, but evaluating gives - a FloatArray(0.938611567020416).<br>
</blockquote>
<br></div>
Float has the following class comment: &quot;My instances represent IEEE-754 floating-point double-precision numbers.&quot;<br>
FloatArray has the following class comment: &quot;FloatArrays store 32bit IEEE floating point numbers.&quot;<br>
<br>
I think what you are seeing is the conversion of 64-bit floating point to 32-bit floating point. Sorry for the initial confusion about your expected result.<br>
<br>
James<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Nikolay<br>
</blockquote>
<br>
<br>
</blockquote></div><br>